summaryrefslogtreecommitdiff
path: root/src/multibyte/btowc.c
blob: 29cb798d2ce2a25cf2eb4e8b5079b80ebfe523a4 (plain) (blame)
1
2
3
4
5
6
7
8
#include <stdio.h>
#include <wchar.h>

wint_t btowc(int c)
{
	c = (unsigned char)c;
	return c<128U ? c : EOF;
}