411 REFERENCE · Wikibooks
C++ Programming/Code/Standard C Library/Functions/strcpy
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
strcpy
#include <cstring>
char *strcpy( char *to, const char *from );
The strcpy() function copies characters in the string 'from to the string to, including the null termination. The return value is to.
Note that strcpy() does not perform bounds checking, and thus risks overrunning from or to. For a similar (and safer) function that includes bounds checking, see strncpy().
Related topics memcpy - strcat - strchr - strcmp - strncmp - strncpy