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