Manpage of WCSWIDTH
WCSWIDTH
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
6.23 `wcswidth'--number of column positions of a wide-character string
SYNOPSIS
#include <wchar.h>
int wcswidth(const wchar_t *PWCS, size_t N);
DESCRIPTION
The `wcswidth' function shall determine the number of column positions
required for n wide-character codes (or fewer than n wide-character
codes if a null wide-character code is encountered before n
wide-character codes are exhausted) in the string pointed to by pwcs.
RETURNS
The `wcswidth' function either shall return 0 (if pwcs points to a null
wide-character code), or return the number of column positions to be
occupied by the wide-character string pointed to by pwcs, or return -1
(if any of the first n wide-character codes in the wide-character
string pointed to by pwcs is not a printable wide-character code).
PORTABILITY
`wcswidth' has been introduced in the Single UNIX Specification Volume 2
`wcswidth' has been marked as extension in Single UNIX Specification
Volume 3
SEE ALSO
wcswidth
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:34 GMT, May 16, 2005
www.fiveanddime.net