SysUtils.AnsiStrLastChar

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From SysUtils.pas

	function AnsiStrLastChar(P: PAnsiChar): PAnsiChar; overload;
 
	function AnsiStrLastChar(P: PWideChar): PWideChar; overload;


Unit: SysUtils

Type: function

Visibility: public

C++ Information

From SysUtils.hpp

	char * __fastcall AnsiStrLastChar(char * P);


Unit: SysUtils

Type: function

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.

See Also

Personal tools
Translations
Newest Version