Files
2015-04-16 09:16:48 +02:00

16 lines
167 B
C

#include <wchar.h>
wchar_t *wcsncpy(wchar_t *p, const wchar_t *q, size_t n)
{
wchar_t *s = p;
while (n && (*p = *q) != 0)
{
++p;
++q;
--n;
}
return s;
}