smol-gilbraltar/nolibc/strncpy.c

10 lines
171 B
C
Raw Normal View History

2024-12-20 22:45:12 +00:00
#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;
}