C/C++ 中函数原型char *strcpy(char *destin, char *source),将source字符串复制到destin。
char *strcpy(char *destin, char *source)
source
destin
C/C++ 语言示例程序:
#include <stdio.h>
#include <string.h>
int main() {
char name[10];
char *str = "jisuanke";
strcpy(name, str);
printf("%s\n", name);
return 0;
}
字符串操作总结
原文:http://www.cnblogs.com/superxuezhazha/p/6390467.html