#include <stdio.h>
void _strcpy(char *s, char *t)
{
while(*s++ = *t++)
;
}
int main()
{
char buf1[] = "tanxiaohai";
char buf2[20] = {0};
_strcpy(buf2, buf1);
printf("%s\n",buf2);
return 0;
}
strcpy函数
最新推荐文章于 2022-09-27 09:52:47 发布