PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
strncat.c
1#define SYSCLIB_DISABLE_BUILTINS
2#include <sysclib.h>
3
4char *strncat(char *restrict d, const char *restrict s, size_t n)
5{
6 char *a = d;
7 d += strlen(d);
8 while (n && *s) n--, *d++ = *s++;
9 *d++ = 0;
10 return a;
11}