scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

mbrlen.c (144B)


      1 #include <wchar.h>
      2 
      3 #undef mbrlen
      4 
      5 size_t
      6 mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps)
      7 {
      8 	return mbrtowc(NULL, s, n, ps);
      9 }