System.SysUtils.StrPCopy
Delphi
function StrPCopy(Dest: PAnsiChar; const Source: AnsiString): PAnsiChar;
function StrPCopy(Dest: PWideChar; const Source: UnicodeString): PWideChar;
C++
extern DELPHI_PACKAGE char * __fastcall StrPCopy _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Dest, const System::AnsiString Source)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Warning: The ANSI version of StrPCopy is deprecated. Please use the AnsiStrings unit.
Copies an AnsiString (long string) to a null-terminated string.
StrPCopy copies Source into a null-terminated string Dest. It returns a pointer to Dest.
StrPCopy does not perform any length check.
The destination buffer must have room for at least Length(Source)+1 characters.
See Also
Code Examples