RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrPCopy Function

Copies an AnsiString (long string) to a null-terminated string.

Pascal
function StrPCopy(Dest: PChar; const Source: string): PChar;
C++
const char * StrPCopy(const char * Dest, const AnsiString Source);

SysUtils

StrPCopy copies Source into a null-terminated string Dest. It returns a pointer to Dest. 

StrPCopy does not perform any length checking.  

The destination buffer must have room for at least Length(Source)+1 characters. 

 

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