diff options
Diffstat (limited to 'lib/string/strncat.c')
| -rw-r--r-- | lib/string/strncat.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/string/strncat.c b/lib/string/strncat.c deleted file mode 100644 index a144e37..0000000 --- a/lib/string/strncat.c +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */ - -#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; -} |
