std::strcpy (3) - Linux Manuals
std::strcpy: std::strcpy
NAME
Synopsis
Defined in header <cstring>
char* strcpy( char* dest, const char* src );
Copies the character string pointed to by src, including the null terminator, to the character array whose first element is pointed to by dest.
The behavior is undefined if the dest array is not large enough. The behavior is undefined if the strings overlap.
Parameters
dest - pointer to the character array to write to
src - pointer to the null-terminated byte string to copy from
Return value
dest
Example
// Run this code
Output:
See also
strncpy (function)
memcpy (function)