diff options
Diffstat (limited to 'user/lib/stpcpy.c')
-rw-r--r-- | user/lib/stpcpy.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/user/lib/stpcpy.c b/user/lib/stpcpy.c new file mode 100644 index 0000000..1586a37 --- /dev/null +++ b/user/lib/stpcpy.c @@ -0,0 +1,9 @@ +#include <string.h> + +char *stpcpy(char *restrict dest, const char *restrict src) +{ + char *d = dest; + for (; (*d = *src); d++, src++) + ; + return d; +} |