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


%d bloggers like this: