wcwidth.c (187B)
1 #include <wchar.h> 2 #undef wcwidth 3 4 /* incomplete, needs a real implementation */ 5 int 6 wcwidth(wchar_t wc) 7 { 8 if (!wc) 9 return 0; 10 else if (wc < 32 || wc >= 127) 11 return -1; 12 return 1; 13 }
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |