Character string copy
[Classification]
Standard library
[Syntax]
#include <string.h>
char *strcpy(char *dst, const char *src);
[Return value]
Returns the value of dst.
[Description]
This function copies the character string indicated by src to the array indicated by dst.
[Example]
#include <string.h>
void func(char *str, const char *src) {
strcpy(str, src); /*Copies character string indicated by src to array
indicated by str.*/
:
}
|