Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1000 Bytes

StrCpy.md

File metadata and controls

52 lines (35 loc) · 1000 Bytes

Home

Function name : StrCpy

Group: Shell Lightweight Utility APIs -- string functions - Library: shlwapi


Copies one string to another.


Code examples:

StrDup returns a pointer to the duplicate of a source VFP string

Declaration:

LPTSTR StrCpy(
    LPTSTR psz1,
    LPCTSTR psz2
);  

FoxPro declaration:

DECLARE INTEGER StrCpyW IN shlwapi AS StrCpy;
	STRING  @ psz1,;
	INTEGER   psz2  

Parameters:

psz1 [out] Pointer to the destination string.

psz2 [in] Pointer to the null-terminated source string.


Return value:

Returns a pointer to psz1.


Comments:

MSDN suggests some security problems related to this function and recommends using StrCpyN instead.