summaryrefslogtreecommitdiff
path: root/src/multibyte/wctomb.c
blob: bad41c5edf9633941db03c8cfad68d1ec1c3ad03 (plain) (blame)
1
2
3
4
5
6
7
8
#include <stdlib.h>
#include <wchar.h>

int wctomb(char *s, wchar_t wc)
{
	if (!s) return 0;
	return wcrtomb(s, wc, 0);
}