diff options
Diffstat (limited to 'libpsn00b/libc/string.c')
| -rw-r--r-- | libpsn00b/libc/string.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpsn00b/libc/string.c b/libpsn00b/libc/string.c index 4943877..a14d950 100644 --- a/libpsn00b/libc/string.c +++ b/libpsn00b/libc/string.c @@ -56,6 +56,18 @@ char *strcpy(char *dst, const char *src) return odst; } +char *strcat(char *dst, const char *src) +{ + char *o=dst; + + while(*dst) + dst++; + + strcpy(dst, src); + + return o; +} + char *strncat(char *s, const char *append, int len) { char *o=s; |
