diff options
Diffstat (limited to 'system/lib/libc/musl/src/multibyte/wcstombs.c')
-rw-r--r-- | system/lib/libc/musl/src/multibyte/wcstombs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/multibyte/wcstombs.c b/system/lib/libc/musl/src/multibyte/wcstombs.c new file mode 100644 index 00000000..ab152874 --- /dev/null +++ b/system/lib/libc/musl/src/multibyte/wcstombs.c @@ -0,0 +1,7 @@ +#include <stdlib.h> +#include <wchar.h> + +size_t wcstombs(char *restrict s, const wchar_t *restrict ws, size_t n) +{ + return wcsrtombs(s, &(const wchar_t *){ws}, n, 0); +} |