diff options
Diffstat (limited to 'lib/libc/stdlib/wctomb.c')
| -rw-r--r-- | lib/libc/stdlib/wctomb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/stdlib/wctomb.c b/lib/libc/stdlib/wctomb.c new file mode 100644 index 00000000..d971ffae --- /dev/null +++ b/lib/libc/stdlib/wctomb.c @@ -0,0 +1,9 @@ +#include <stdlib.h> +#include <wchar.h> + +int wctomb(char *s, wchar_t wc) +{ + if (s == NULL) + return 0; + return wcrtomb(s, wc, 0); +} |
