blob: bad41c5edf9633941db03c8cfad68d1ec1c3ad03 [file] [log] [blame] [edit]
#include <stdlib.h>
#include <wchar.h>
int wctomb(char *s, wchar_t wc)
{
if (!s) return 0;
return wcrtomb(s, wc, 0);
}