strcpy
Syntax
- char* strcpy(char* dest, const char* src)
Arguments
- dest
- The string to which the source string is to be copied.
- src
- The string which is to be copied to the destination string.
Return
- A pointer to the destination string, identical to dest.
Description
- Copies the entire string src to the string dest including the trailing NULL character.
- The string dest must be large enough to hold the string src, otherwise results are undefined.
Also see
- strncpy