scc

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

wctomb.c (121B)


      1 #include <stdlib.h>
      2 #include <wchar.h>
      3 
      4 #undef wctomb
      5 
      6 int
      7 wctomb(char *s, wchar_t wc)
      8 {
      9 	return wcrtomb(s, wc, NULL);
     10 }