2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
11 .TH wcwidth 3 (date) "Linux man-pages (unreleased)"
13 wcwidth \- determine columns needed for a wide character
16 .RI ( libc ", " \-lc )
19 .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
22 .BI "int wcwidth(wchar_t " c );
27 function returns the number of columns
28 needed to represent the wide character
32 is a printable wide character, the value
36 is null wide character (L\[aq]\e0\[aq]), the value is 0.
37 Otherwise, \-1 is returned.
41 function returns the number of
45 For an explanation of the terms used in this section, see
53 Interface Attribute Value
56 T} Thread safety MT-Safe locale
62 POSIX.1-2001, POSIX.1-2008.
64 Note that before glibc 2.2.5, glibc used the prototype
67 .BI "int wcwidth(wint_t " c );