System.SysUtils.StrCopy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE char * __fastcall StrCopy _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 StrCopy is deprecated. Please use the AnsiStrings unit.

Copies a null-terminated string.

Use StrCopy to copy Source to Dest. StrCopy returns Dest.

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

For length check, use the StrLCopy function.

See Also

Code Examples