strcat.c 112 B

12345678910
  1. #include <u.h>
  2. #include <libc.h>
  3. char*
  4. strcat(char *s1, char *s2)
  5. {
  6. strcpy(strchr(s1, 0), s2);
  7. return s1;
  8. }