welibc
A clear, secure, and well documented standard C library
|
Defines the strcpy function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
char * | strcpy (char *s1, const char *s2) |
Copies a string with null terminator from s2 into s1. More... | |
Defines the strcpy function.
Definition in file strcpy.c.
char* strcpy | ( | char * | s1, |
const char * | s2 | ||
) |
Copies a string with null terminator from s2 into s1.
*s1 | The destination array |
*s2 | The source string |
The strcpy function copies the string pointed to by s2 (including the terminating null character) into the array pointed to by s1.
Definition at line 54 of file strcpy.c.
References memmove(), and strlen().
Referenced by strcat(), and strncpy().