summaryrefslogtreecommitdiff
path: root/src/string/strncpy.c
blob: c0cd7974e1275b6c51b83fa637cb369dd2f3a871 (plain)
1
2
3
4
5
6
7
8
9
#include <string.h>

char *__stpncpy(char *, const char *, size_t);

char *strncpy(char *d, const char *s, size_t n)
{
	__stpncpy(d, s, n);
	return d;
}