PageRenderTime 55ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/string/strcat.c

https://github.com/noname22/NeoDICE
C | 28 lines | 15 code | 6 blank | 7 comment | 2 complexity | 253657d8ad00fa6ea6053c748dc6b66c MD5 | raw file
  1. /*
  2. * STRCAT.C
  3. *
  4. * (c)Copyright 1992-1997 Obvious Implementations Corp. Redistribution and
  5. * use is allowed under the terms of the DICE-LICENSE FILE,
  6. * DICE-LICENSE.TXT.
  7. */
  8. #include <string.h>
  9. #ifndef HYPER
  10. #define HYPER(x) x
  11. #endif
  12. char *
  13. HYPER(strcat)(d, s)
  14. char *d;
  15. const char *s;
  16. {
  17. char *base= d;
  18. while (*d)
  19. ++d;
  20. while (*d++ = *s++);
  21. return(base);
  22. }