From 72b7d4168afc63db572539d41623c3ab0f09ddf4 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Mon, 23 Sep 2019 11:28:07 +0800 Subject: Added strcat(), added gte_stsz() macro, added _boot() and fixed typos in setUVWH() macro --- libpsn00b/libc/string.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libpsn00b/libc/string.c') 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; -- cgit v1.2.3