String Copy
Syntax
#include
(string.h>
char
*strcpy(sl, s2)
char
*s1, *s2;
Defined in
strcpy. c in rts. src
strcpy
Description
The strcpy function copies s2 (including a terminating null character) into
s1. If you attempt to copy strings that overlap, the function's behavior is
undefined. The function returns a pointer to the destination string.
6-69