1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
15 .TH WCSWIDTH 3 2014-01-22 "GNU" "Linux Programmer's Manual"
17 wcswidth \- determine columns needed for a fixed-size wide-character string
20 .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
23 .BI "int wcswidth(const wchar_t *" s ", size_t " n );
29 number of columns needed to represent
30 the wide-character string pointed to by
36 If a nonprintable wide character occurs among these characters,
42 returns the number of column positions for the
45 truncated to at most length
48 .SS Multithreading (see pthreads(7))
51 function is thread-safe with exceptions.
52 It can be safely used in multithreaded applications, as long as
54 is not called to change the locale during its execution.
68 This page is part of release 3.78 of the Linux
71 A description of the project,
72 information about reporting bugs,
73 and the latest version of this page,
75 \%http://www.kernel.org/doc/man\-pages/.