9 lines
122 B
C
9 lines
122 B
C
#include <stdlib.h>
|
|
#include <wchar.h>
|
|
|
|
int wctomb(char *s, wchar_t wc)
|
|
{
|
|
if (!s) return 0;
|
|
return wcrtomb(s, wc, 0);
|
|
}
|