mirror of
https://github.com/fluencelabs/musl
synced 2025-06-26 13:12:03 +00:00
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:
8
src/string/wcsnlen.c
Normal file
8
src/string/wcsnlen.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user