summaryrefslogtreecommitdiff
path: root/src/string/wcpncpy.c
blob: aef8096237cd7db0bacb8b47d8daf85c5bd9bf88 (plain)
1
2
3
4
5
6
#include <wchar.h>

wchar_t *wcpncpy(wchar_t *d, const wchar_t *s, size_t n)
{
	return wcsncpy(d, s, n) + wcsnlen(s, n);
}