Index of Section 3 Manual Pages
| Interix / SUA | wcwidth.3 | Interix / SUA |
wcwidth(3) wcwidth(3)
wcwidth()
NAME
wcwidth() - number of column positions of a wide-character code
SYNOPSIS
#include
int wcwidth(wchar_t wc)
DESCRIPTION
The wcwidth(3) function determines the number of column positions required
for the wide character wc. The value of wc must be a character
representable as a wchar_t, and must be a wide-character code
corresponding to a valid character in the current locale.
The arguments are:
wc
A wide-character code for which the width is to be determined.
RETURN VALUES
If the wcwidth(3) call is successful it returns 0 (if wc is a null wide-
character code), or returns the number of column positions to be occupied
by the wide-character code wc. It returns -1 if wc does not correspond to
a printing wide-character code.
ERRORS
No errors are defined.
SEE ALSO
wcswidth(3)
USAGE NOTES
The wcwidth function is thread safe.
The wcwidth function is not async-signal safe.