kernel/libc.c
char *strcat(char *dest, const char *src) {
    char *tmp = dest;
    while (*dest) {
        dest++;
    }
    while (*src) {
        *dest++ = *src++;
    }
    /* return the first-byte address */
    return tmp;
}
/* Concact the second string after the first */
Concact the second string after the first
Concact the second string after the first
char *strcat(char *dest, const char *src) {
    char *tmp = dest;
    while (*dest) {
        dest++;
    }
    while (*src) {
        *dest++ = *src++;
    }
    return tmp;
}
char * strcat ( char * dest , const char * src ) { char * tmp = dest ; while ( * dest ) { dest ++ ; } while ( * src ) { * dest ++ = * src ++ ; } return tmp ; }
Concact the second string after the first
Concact the second string after the first
/* return the first-byte address */