69,371
社区成员
发帖
与我相关
我的任务
分享
void strcat1(char *s,const char *t)
{
while(*s)
s++;
while(*t)
*s++=*t++;
}
void main()
{
char *s="123";
const char *t="456";
realloc(s,strlen(s)+strlen(t)+1);
strcat1(s,t);
printf("%s",s);
printf("\n");
}