System.SysUtils.StrECopy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrECopy(Dest: PAnsiChar; const Source: PAnsiChar): PAnsiChar;
function StrECopy(Dest: PWideChar; const Source: PWideChar): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrECopy _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Dest, const char * 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 StrECopy is deprecated. Please use the AnsiStrings unit.

Copies a null-terminated string.

StrECopy copies Source to Dest and returns StrEnd(Dest).

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

Nested calls to StrECopy to concatenate a sequence of strings run more efficiently than multiple calls to StrCat.

See Also

Code Examples