From e0614f7cd418afedd06c9bcd5abb965608bc52f8 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 1 Mar 2012 23:24:45 -0500 Subject: add all missing wchar functions except floating point parsers these are mostly untested and adapted directly from corresponding byte string functions and similar. --- src/string/wcpncpy.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/string/wcpncpy.c (limited to 'src/string/wcpncpy.c') 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); +} -- cgit v1.2.1