标签:
#include <stdio.h>
#include <string.h>
void str_cpy(char * to, char *from)
{
while ((*to++ = *from++) != ‘\0‘);
return;
}
int main()
{
char a[128];
str_cpy(a,"hello");
printf("a:%s\n",a);
return 0;
}
标签:
原文地址:http://www.cnblogs.com/zhanghaha/p/4579236.html