wctomb.c - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       wctomb.c (216B)
       ---
            1 #include <stdlib.h>
            2 #include <wchar.h>
            3 
            4 #undef wctomb
            5 
            6 /*
            7  * We don't use any state in the wc* functions
            8  * so we don't need a mbstate_t variable
            9  */
           10 int
           11 wctomb(char *s, wchar_t wc)
           12 {
           13         return wcrtomb(s, wc, NULL);
           14 }