English pages are provided only to compare translations to original pages,
better looking pages can be browsed
at the Linux man-pages official site.
Linux Programmer's Manual (3)
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
Multithreading (see pthreads(7))
function is thread-safe with exceptions.
It can be safely used in multithreaded applications, as long as
is not called to change the locale during its execution.
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.66 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
- RETURN VALUE
- Multithreading (see pthreads(7))
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:43:03 GMT, July 12, 2014