3 <<wcwidth>>---number of column positions of a wide-character code
10 int wcwidth(const wchar_t <[wc]>);
18 The <<wcwidth>> function shall determine the number of column
19 positions required for the wide character wc. The application
20 shall ensure that the value of wc is a character representable
21 as a wchar_t, and is a wide-character code corresponding to a
22 valid character in the current locale.
25 The <<wcwidth>> function shall either return 0 (if wc is a null
26 wide-character code), or return the number of column positions to
27 be occupied by the wide-character code wc, or return -1 (if wc
28 does not correspond to a printable wide-character code).
30 The current implementation of <<wcwidth>> simply sets the width
31 of all printable characters to 1 since newlib has no character
35 <<wcwidth>> has been introduced in the Single UNIX Specification Volume 2
36 <<wcwidth>> has been marked as extension in Single UNIX Specification Volume 3
44 _DEFUN (wcwidth
, (wc
),
50 if (iswcntrl (wc
) || wc
== L
'\0')