strcpy.3 (510B)
1 .TH strcpy 3 2 .SH NAME 3 strcpy - copy a string 4 .SH SYNOPSIS 5 #include <string.h> 6 7 char *strcpy(char *restrict s1, const char *restrict s2) 8 .SH DESCRIPTION 9 The 10 .BR strcpy () 11 function copies the null-terminated string at 12 .I s2 13 into the character array at 14 .IR s1 , 15 including the terminating null byte. 16 The source and destination must not overlap; 17 if they do, the behavior is undefined. 18 .SH RETURN VALUE 19 The 20 .BR strcpy () 21 function returns its first argument, 22 .IR s1 . 23 .SH STANDARDS 24 ISO/IEC 9899:1999 Section 7.21.2.3