#include <wchar.h>
|
int
wcswidth (const wchar_t *pwcs, size_t n); |
The behavior of the wcswdith is affected by LC_CTYPE category of the current locale.
#include <wchar.h> /* Illustrates how to use wcswidth API */ int example_wcswidth() { /* wide character string for which width has to */ /* determined */ wchar_t *ws1 = L"test case"; int retval; /* compute the width of the ws1 */ retval = wcswidth(ws1,50); /* return the result */ return retval; }
The wcswidth function conforms to -p1003.1-2001.
© 2005-2007 Nokia |