1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <wchar.h> size_t mbrtowc(wchar_t * restrict pwc, const char * restrict s, size_t n, mbstate_t * restrict ps) { (void)ps; (void)pwc; (void)n; if (s == NULL) { s = ""; n = 1; } /* TODO */ return 0; } /* STDC(199409) */