btowc.c (157B)
1 #include <stdio.h> 2 #include <wchar.h> 3 4 #undef btowc 5 6 wint_t 7 btowc(int ch) 8 { 9 unsigned char c = ch; 10 11 if (ch == EOF || c >= 128) 12 return WEOF; 13 return ch; 14 }
sccsimple c99 compiler | |
| git clone git://git.simple-cc.org/scc | |
| Log | Files | Refs | Submodules | README | LICENSE |