summaryrefslogtreecommitdiff
path: root/src/wchar/wctob.c
blob: 5608a6723583ea40062fd96f1881dfc3c421a9e2 (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
#if 0

#include <wchar.h>
#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)
*/


#endif