X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstring%2Fwcpncpy.c;fp=src%2Fstring%2Fwcpncpy.c;h=aef8096237cd7db0bacb8b47d8daf85c5bd9bf88;hb=e0614f7cd418afedd06c9bcd5abb965608bc52f8;hp=0000000000000000000000000000000000000000;hpb=899b13cae77469a9ed1f076c456b66d567af69d8;p=musl diff --git a/src/string/wcpncpy.c b/src/string/wcpncpy.c new file mode 100644 index 00000000..aef80962 --- /dev/null +++ b/src/string/wcpncpy.c @@ -0,0 +1,6 @@ +#include + +wchar_t *wcpncpy(wchar_t *d, const wchar_t *s, size_t n) +{ + return wcsncpy(d, s, n) + wcsnlen(s, n); +}