musl/src/multibyte/wctomb.c
Rich Felker 6cec7bc57f remove comments on copyright status from UTF-8 implementation files
despite clarifications made to the COPYRIGHT file in commit
f0a61399330bae42beeb27d6ecd05570b3382a60, there continues to be
confusion about whether the permissions granted actually apply to all
files. I am the sole author of these files and clearly intend, and
have always intended, for the grant of permission to apply to them.
2016-06-21 16:33:14 -04:00

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);
}