Copy a string.
LPSTR strcpy( LPSTR lpszDestination, LPCSTR lpcszSource )
If the function succeeds, the return value is a pointer to the buffer. If the function fails, the return value is NULL.
EX1
void strcpy_ex1() { string str = "Hello World!"; char szStr[80]; strcpy(szStr, str); out_str(szStr); // Should be "Hello World!" }
strncpy
origin.h