Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

StrPas

Convert a null-terminated string to an ansistring.

Declaration

Source position: syspchh.inc line 39

function StrPas(

  Str: PAnsiChar

):string; overload;

function StrPas(

  Str: PWideChar

):UnicodeString; overload;

Description

Converts a null terminated string in Str to an Ansitring, and returns this string. This string is NOT truncated at 255 characters as is the system unit's version.

Errors

None.

See also

StrPCopy

  

Copy an ansistring to a null-terminated string.

StrPLCopy

  

Copy a limited number of characters from an ansistring to a null-terminated string.


Documentation generated on: Dec 27 2024