Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
&pagelevel(4)&pagelevel
Syntax | #include <string.h> char *strcpy(char *s1, const char *s2); |
Description | strcpy() copies the string s2, including the terminating null byte (\0 ), into the memory area pointed to by s1. The space pointed to by s1 must be large enough to accommodate the string s2 as well as the terminating null byte (\0 ).
|
Return val. Notes | Pointer to the result string s1. A string terminated with the null byte (\0 ) is expected as the second argument.
strcpy() does not verify whether s1 is large enough to accommodate the result. The behavior is undefined if memory areas overlap. |
See also | strncpy() , string.h .
|