Skip to content

TRUEANGLE

BEAUTY AND PLAY

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

wcwidth programming

Posted byjeffrin April 12, 2010

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

Post navigation

Previous Post Previous post:
tic compiler
Next Post Next post:
getservbyname programming
April 2010
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Mar   May »
TRUEANGLE, Proudly powered by WordPress.