mirror of
https://github.com/fluencelabs/musl
synced 2025-05-16 09:11:30 +00:00
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.
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);
|
|
}
|