scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stdlib.h>
 2#include <wchar.h>
 3
 4#undef wcstombs
 5
 6/*
 7 * We don't use any state in the wc* functions
 8 * so we don't need a mbstate_t variable
 9 */
10size_t
11wcstombs(char *restrict dest, const wchar_t *restrict src, size_t n)
12{
13	return wcsrtombs(dest, (void *) &src, n, NULL);
14}