scc

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

mblen.c (102B)


      1 #include <stdlib.h>
      2 
      3 #undef mblen
      4 
      5 int
      6 mblen(const char *s, size_t n)
      7 {
      8 	return mbtowc(NULL, s, n);
      9 }