RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrPLCopy Function

Copies characters from an AnsiString (long string) into a null-terminated string.

Pascal
function StrPLCopy(Dest: PChar; const Source: string; MaxLen: Cardinal): PChar;
C++
const char * StrPLCopy(const char * Dest, const AnsiString Source, unsigned MaxLen);

SysUtils

StrPLCopy copies up to a maximum of MaxLen characters from Source into the null-terminated string Dest. StrPLCopy returns a pointer to Dest.

Note: Dest should point to a location with room for MaxLen + 1 characters, including the null terminator.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!