summaryrefslogtreecommitdiff
path: root/src/string/strncpy.c
blob: 441ba0335f7377da1562644d9436d5fbc9c2d6e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
#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;
}