From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/multibyte/wctomb.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/multibyte/wctomb.c (limited to 'src/multibyte/wctomb.c') diff --git a/src/multibyte/wctomb.c b/src/multibyte/wctomb.c new file mode 100644 index 0000000..bad41c5 --- /dev/null +++ b/src/multibyte/wctomb.c @@ -0,0 +1,8 @@ +#include +#include + +int wctomb(char *s, wchar_t wc) +{ + if (!s) return 0; + return wcrtomb(s, wc, 0); +} -- cgit v1.2.3