Section: Linux Programmer's Manual (3)
Return to Main Contents
wcwidth - determine columns needed for a wide character
#define _XOPEN_SOURCE /* See feature_test_macros(7) */
int wcwidth(wchar_t c);
function returns the number of columns
needed to represent the wide character
is a printable wide character, the value
is at least 0.
is null wide character (L'\0'), the value is 0.
Otherwise -1 is returned.
function returns the number of
column positions for
Note that glibc before 2.2.5 used the prototype
int wcwidth(wint_t c);
The behavior of
depends on the
category of the
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 14:46:32 GMT, January 21, 2018