RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WStrPLCopy Function

Copies characters from a WideString into a PWideChar.

Pascal
function WStrPLCopy(Dest: PWideChar; const Source: WideString; MaxLen: Cardinal): PWideChar;
C++
PWideChar WStrPLCopy(PWideChar Dest, const BSTR Source, unsigned MaxLen);

WStrPLCopy copies up to a maximum of MaxLen characters from Source into the PWideChar Dest. WStrPLCopy returns a pointer to Dest.

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!