#include #include "locale.h" #include "string.h" #include "stdio.h" int wctob(wint_t c) { char *l = setlocale(LC_CTYPE, NULL); if (!strcmp(l, "C") || !strcmp(l, "POSIX")) { if (c <= 127) { return c; } } /* conversion */ return EOF; } /* STDC(199409) */