Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

Daily Archives: April 12, 2010

wcwidth – determine columns needed for a wide character

UNIX API wcwidth – determine columns needed for a wide character API Explanation Code #define _XOPEN_SOURCE #include <wchar.h> #include<stdio.h> main() { int value; wchar_t cr; cr=’H’; value=wcwidth(cr); printf(“n %d n”,value); } http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00540.html

Posted byjeffrinApril 12, 2010Posted inUncategorized

wcwidth programming

wcwidth – determine columns needed for a wide character #define _XOPEN_SOURCE #include <wchar.h> #include<stdio.h> main() { int value; wchar_t cr; cr=’H’; value=wcwidth(cr); printf(“\n %d \n”,value); } http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00540.html

Posted byjeffrinApril 12, 2010Posted inoperating systemTags: linux, wcwidth, wide character
April 2010
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Mar   May »
TRUEANGLE, Proudly powered by WordPress.