char *strcat(char *dst, const char *src)
{
assert((dst != NULL) && (src != NULL));
char *p = dst;
while(*p)
p++;
while( (*p++ = *src++) != '\0' )
;
return dst;
}
C语言实现strcat
最新推荐文章于 2021-12-23 19:01:09 发布
char *strcat(char *dst, const char *src)
{
assert((dst != NULL) && (src != NULL));
char *p = dst;
while(*p)
p++;
while( (*p++ = *src++) != '\0' )
;
return dst;
}