strcat.c 374 B

123456789101112131415161718192021222324
  1. /* $Id$ */
  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. #include "ack_string.h"
  9. char *
  10. strcat(s, t)
  11. register char *s;
  12. register _CONST char *t;
  13. {
  14. register char *b = s;
  15. while (*s++)
  16. ;
  17. s--;
  18. while (*s++ = *t++)
  19. ;
  20. return b;
  21. }