[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StrPLCopy

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

Declaration

Source position: syspchh.inc line 46

function StrPLCopy(

  Dest: PChar;

  Source: String;

  MaxLen: SizeUInt

):PChar;

Description

StrPLCopyConverts maximally MaxLencharacters of the Ansistring in Sourceto a Null-terminated string, and copies it to Dest. Destneeds enough room to contain the characters.

Errors

No checking is performed to see whether Destpoints to enough memory to contain L characters of Source.

See also

StrPCopy

  

Copy an ansistring to a null-terminated string.