summaryrefslogtreecommitdiff
path: root/src/wchar/wctob.c
blob: 14ccf18c7c15d87b92f3851f747855de7b6cbd9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#if 0

#include <wchar.h>
#include <locale.h>
#include <string.h>
#include <stdio.h>

int wctob(wint_t c)
{
	SIGNAL_SAFE(0);

	char *l = setlocale(LC_CTYPE, NULL);

	if (!strcmp(l, "C") || !strcmp(l, "POSIX")) {
		if (c <= 127) {
			return c;
		}
	}

	/* conversion */
	return EOF;
}

/*
STDC(199409)
*/


#endif