scc

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

mbsinit.c (116B)


      1 #include <wchar.h>
      2 
      3 #undef mbsinit
      4 
      5 int
      6 mbsinit(const mbstate_t *ps)
      7 {
      8 	if (!ps)
      9 		return 1;
     10 	return ps->oc == 0;
     11 }