#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;
}
相关文章:
#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;
}
相关文章: