System.SysUtils.AnsiStrLastChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE char * __fastcall AnsiStrLastChar _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * P)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Warning: The ANSI version of AnsiStrLastChar is deprecated. Please use the AnsiStrings unit.

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