Home
       wcwidth.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       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 }