Copies up to a specified maximum number of characters from Source to Dest.
function StrLCopy(Dest: PChar; const Source: PChar; MaxLen: Cardinal): PChar;
const char * StrLCopy(const char * Dest, const const char * Source, unsigned MaxLen);
SysUtils
StrLCopy copies at most MaxLen characters from Source to Dest, then adds a null terminator to Dest and returns Dest. The SizeOf standard function (Delphi) or the sizeof operator (C++) can be used to determine the MaxLen parameter. Usually MaxLen equals SizeOf(Dest)-1.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|