smol-gilbraltar/nolibc/strncpy.c
2024-12-20 23:45:12 +01:00

9 lines
171 B
C

#include <string.h>
char *__stpncpy(char *, const char *, size_t);
char *strncpy(char *restrict d, const char *restrict s, size_t n)
{
__stpncpy(d, s, n);
return d;
}