//strcpy.c
#include <stdio.h>
#include <windows.h>
int main()
{ /*exterm strcpy(char *dest,char *src);
将src字符串中的内容复制到dest所指的字符
中.返回指向dest字符串的指针.*/
char *d="abcdefgh";
char p[20]="";
system("cls");
strcpy(p,d);
printf("%s\n",p);
return 0;
}
转载于:https://www.cnblogs.com/wangjingyuwhy/archive/2013/03/06/2946882.html