wcwidth(3) Library Functions Manual wcwidth(3) wcwidth - , LIBRARY Standard C library (libc, -lc) #define _XOPEN_SOURCE /* . feature_test_macros(7) */ #include int wcwidth(wchar_t c); The wcwidth() function returns the number of columns needed to represent the wide character c. If c is a printable wide character, the value is at least 0. If c is null wide character (L'\0'), the value is 0. Otherwise, -1 is returned. wcwidth() c. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcwidth() | | MT-Safe locale | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. Note that before glibc 2.2.5, glibc used the prototype int wcwidth(wint_t c); wcwidth() LC_CTYPE . . iswprint(3), wcswidth(3) Azamat Hackimov Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . wcwidth(3)