LPTSTR lstrcpy(lpszString1, lpszString2) | |||||
LPTSTR lpszString1; | /* address of buffer | */ | |||
LPCTSTR lpszString2; | /* address of string to copy | */ |
The lstrcpy function copies copies a string to a buffer.
lpszString1
Points to a buffer that will receive the contents of the string pointed to by the lpszString2 parameter. The buffer must be large enough to contain the string, including the terminating null character.
lpszString2
Points to the null-terminated string to be copied.
The return value is a pointer to lpszString1 if the function is successful. Otherwise, it is NULL.
With a double-byte character set (DBCS) version of Windows, this function can be used to copy a double-byte character set (DBCS) string.
lstrlen