diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/lib/libc/musl/src/string/strncat.c | 10 | ||||
-rw-r--r-- | system/lib/libcextra.symbols | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/strncat.c b/system/lib/libc/musl/src/string/strncat.c new file mode 100644 index 00000000..01ca2a23 --- /dev/null +++ b/system/lib/libc/musl/src/string/strncat.c @@ -0,0 +1,10 @@ +#include <string.h> + +char *strncat(char *restrict d, const char *restrict s, size_t n) +{ + char *a = d; + d += strlen(d); + while (n && *s) n--, *d++ = *s++; + *d++ = 0; + return a; +} diff --git a/system/lib/libcextra.symbols b/system/lib/libcextra.symbols index fc3eaf99..30a39d52 100644 --- a/system/lib/libcextra.symbols +++ b/system/lib/libcextra.symbols @@ -118,6 +118,7 @@ T strlcat T strlcpy T strncasecmp_l + T strncat T strsep T strspn T strverscmp |