lstrcpy

2.x

  LPSTR lstrcpy(lpszString1, lpszString2)    
  LPSTR lpszString1; /* address of buffer */
  LPCSTR lpszString2; /* address of string to copy */

The lstrcpy function copies a string to a buffer.

Parameters

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.

Return Value

The return value is a pointer to lpszString1 if the function is successful. Otherwise, it is NULL.

Comments

This function can be used to copy a double-byte character set (DBCS) string.

Both strings must be less than 64K in size.

See Also

lstrlen