add all missing wchar functions except floating point parsers

these are mostly untested and adapted directly from corresponding byte
string functions and similar.
This commit is contained in:
Rich Felker
2012-03-01 23:24:45 -05:00
parent 899b13cae7
commit e0614f7cd4
12 changed files with 98 additions and 0 deletions

8
src/string/wcsnlen.c Normal file
View File

@ -0,0 +1,8 @@
#include <wchar.h>
size_t wcsnlen(const wchar_t *s, size_t n)
{
const wchar_t *z = wmemchr(s, 0, n);
if (z) n = z-s;
return n;
}