实现方式:
char *ho_strcat(char *s1, const char *s2) { char *p = s1; for (; *p; p++) ; while ((*p++ = *s2++) != ‘\0‘) ; return s1; }
时间: 2024-12-19 11:28:14
实现方式:
char *ho_strcat(char *s1, const char *s2) { char *p = s1; for (; *p; p++) ; while ((*p++ = *s2++) != ‘\0‘) ; return s1; }