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 wcswidth 3 (date) "Linux man-pages (unreleased)"
13 wcswidth \- determine columns needed for a fixed-size wide-character string
16 .RI ( libc ", " \-lc )
19 .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
22 .BI "int wcswidth(const wchar_t *" s ", size_t " n );
28 number of columns needed to represent
29 the wide-character string pointed to by
35 If a nonprintable wide character occurs among these characters,
41 returns the number of column positions for the
44 truncated to at most length
47 For an explanation of the terms used in this section, see
55 Interface Attribute Value
58 T} Thread safety MT-Safe locale
64 POSIX.1-2001, POSIX.1-2008.