1#include <wchar.h>23#undef mbrlen45size_t6mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps)7{8 static mbstate_t st;910 if (!ps)11 ps = &st;12 return mbrtowc(NULL, s, n, ps);13}
A fork of https://git.simple-cc.org/scc/ for Qute
git clone https://git.8pit.net/scc.git
1#include <wchar.h>23#undef mbrlen45size_t6mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps)7{8 static mbstate_t st;910 if (!ps)11 ps = &st;12 return mbrtowc(NULL, s, n, ps);13}