System.SysUtils.StrCopy

提供: RAD Studio API Documentation
移動先: 案内検索

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 */;

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

説明

警告: StrCopy の ANSI バージョンは廃止予定です。AnsiStrings ユニットを使用してください。

ヌルで終わる文字列をコピーします。

StrCopy 関数を使用すると,Source を Dest にコピーできます。StrCopy は Dest を返します。

StrCopy は長さをチェックしません。コピー先のバッファには最低でも StrLen(Source) + 1 バイト分の領域がなくてはなりません。

長さチェックをしたい場合は StrLCopy 関数を使用します。

関連項目