strcat.c 330 B

1234567891011121314151617181920
  1. /* $Header$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* append t to s
  7. */
  8. char *
  9. strcat(s, t)
  10. register char *s, *t;
  11. {
  12. register char *b = s;
  13. while (*s++)
  14. ;
  15. s--;
  16. while (*s++ = *t++)
  17. ;
  18. return b;
  19. }