[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] 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 40

function StrPLCopy(

  Dest: PChar;

  const Source: string;

  MaxLen: SizeUInt

):PChar; overload;

function StrPLCopy(

  Dest: PWideChar;

  const Source: UnicodeString;

  MaxLen: SizeUInt

):PWideChar; overload;

Description

StrPLCopy Converts maximally MaxLen characters of the Ansistring in Source to a Null-terminated string, and copies it to Dest. Dest needs enough room to contain the characters.

Errors

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

See also

StrPCopy

  

Copy an ansistring to a null-terminated string.


Documentation generated on: Sep 28 2017