diff options
Diffstat (limited to 'usr/klibc/strcat.c')
-rw-r--r-- | usr/klibc/strcat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/klibc/strcat.c b/usr/klibc/strcat.c new file mode 100644 index 0000000..6c5b673 --- /dev/null +++ b/usr/klibc/strcat.c @@ -0,0 +1,11 @@ +/* + * strcat.c + */ + +#include <string.h> + +char *strcat(char *dst, const char *src) +{ + strcpy(strchr(dst, '\0'), src); + return dst; +} |