1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
13 .TH WCSWIDTH 3 2007-07-26 "GNU" "Linux Programmer's Manual"
15 wcswidth \- determine columns needed for a fixed-size wide-character string
18 .B #define _XOPEN_SOURCE
21 .BI "int wcswidth(const wchar_t *" s ", size_t " n );
27 number of columns needed to represent
28 the wide-character string pointed to by \fIs\fP, but at most \fIn\fP wide
30 If a nonprintable wide character occurs among these characters,
36 returns the number of column positions for the
37 wide-character string \fIs\fP, truncated to at most length \fIn\fP.