/lib/string/stpcpy.c
https://github.com/noname22/NeoDICE · C · 25 lines · 12 code · 6 blank · 7 comment · 1 complexity · 336507dd76b56fc7308bb5ca52d7dce6 MD5 · raw file
- /*
- * STPCPY.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(stpcpy)(d, s)
- char *d;
- const char *s;
- {
- while (*d++ = *s++);
- return(d-1);
- }