Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (w - z) wcswidth(3)
RETURN VALUES
The wcswidth( ) function returns the number of display columns to be occupied by the number of
wide characters (up to the terminating null wide character specified by the n parameter (or fewer)
in the string pointed to by the pwcs parameter. A value of 0 (zero) is returned if the pwcs param-
eter is a wide-character NULL pointer or a pointer to a wide-character NULL pointer (that is,
pwcs or *pwcs is NULL). If the pwcs parameter points to an unusable wide character code, a
value of -1 is returned.
RELATED INFORMATION
Functions: wcwidth(3).
527187-017 Hewlett-Packard Company 8−53