1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#if 0 #include <wchar.h> size_t mbrlen(const char * restrict s, size_t n, mbstate_t * restrict ps) { SIGNAL_SAFE(0); /* TODO: overlap */ static mbstate_t internal = 0; return mbrtowc(NULL, s, n, ps != NULL ? ps : &internal); } /* STDC(199409) */ #endif