RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WStrCopy Function

Copies a PWideChar to another PWideChar.

Pascal
function WStrCopy(Dest: PWideChar; const Source: PWideChar): PWideChar;
C++
PWideChar WStrCopy(PWideChar Dest, const PWideChar Source);

Use WStrCopy to copy Source to Dest. WStrCopy returns Dest.  

WStrCopy does not perform any length check. The destination buffer must have room for at least WStrLen(Source) + 1 characters. 

For length checking, use the WStrLCopy function. 

 

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