Copies all of str_2, including the terminating null character, into str_1.
#include <string.h> char *strcpy (char *str_1, const char *str_2);Function Variants This function also has variants named _strcpy32 and _strcpy64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.
The behavior of this function is undefined if the area pointed to by str_1 overlaps the area pointed to by str_2.
x | The address of str_ 1. |