/lib/string/strcat.c
C | 28 lines | 15 code | 6 blank | 7 comment | 2 complexity | 253657d8ad00fa6ea6053c748dc6b66c MD5 | raw file
- /*
- * STRCAT.C
- *
- * (c)Copyright 1992-1997 Obvious Implementations Corp. Redistribution and
- * use is allowed under the terms of the DICE-LICENSE FILE,
- * DICE-LICENSE.TXT.
- */
- #include <string.h>
- #ifndef HYPER
- #define HYPER(x) x
- #endif
- char *
- HYPER(strcat)(d, s)
- char *d;
- const char *s;
- {
- char *base= d;
- while (*d)
- ++d;
- while (*d++ = *s++);
- return(base);
- }