System.AnsiStrings.AnsiStrLastChar
Delphi
function AnsiStrLastChar(P: PAnsiChar): PAnsiChar;
C++
extern DELPHI_PACKAGE char * __fastcall AnsiStrLastChar(char * P)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Returns a pointer to the last character in a null-terminated string.
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.