RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AnsiStrLastChar Function

Returns a pointer to the last character in a null-terminated string.

Pascal
function AnsiStrLastChar(P: PChar): PChar;
C++
const char * AnsiStrLastChar(const char * P);

SysUtils

Call AnsiStrLastChar to obtain a pointer to the last full character in a null-terminated sequence. When working with multi-byte character sets (MBCS), the last character will not be the same as the last char value if the last two bytes represent a single double byte character. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!