Manual Pages for Linux CentOS command on man wcwidth
MyWebUniversity

Manual Pages for Linux CentOS command on man wcwidth

WCWIDTH(3) Linux Programmer's Manual WCWIDTH(3)

NAME

wcwidth - determine columns needed for a wide character SYNOPSIS

#define XOPENSOURCE /* See featuretestmacros(7) */

#include int wcwidth(wchart c); DESCRIPTION The wcwidth() function returns the number of columns needed to repre‐ sent 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. RETURN VALUE The wcwidth() function returns the number of column positions for c. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌──────────┬───────────────┬────────────────┐ │Interface │ Attribute │ Value │ ├──────────┼───────────────┼────────────────┤

│wcwidth() │ Thread safety │ MT-Safe locale │ └──────────┴───────────────┴────────────────┘ CONFORMING TO

POSIX.1-2001. Note that glibc before 2.2.5 used the prototype int wcwidth(wintt c); NOTES The behavior of wcwidth() depends on the LCCTYPE category of the cur‐ rent locale. SEE ALSO iswprint(3), wcswidth(3) COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

GNU 2011-09-28 WCWIDTH(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™