Query: wcwidth
OS: sunos
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
wcwidth(3C) Standard C Library Functions wcwidth(3C)NAMEwcwidth - number of column positions of a wide-character codeSYNOPSIS#include <wchar.h> int wcwidth(wchar_t wc);DESCRIPTIONThe wcwidth() 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.RETURN VALUESThe wcwidth() function either 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, or returns -1 (if wc does not correspond to a printing wide-character code).ERRORSNo errors are defined.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+SEE ALSOsetlocale(3C), wcswidth(3C), attributes(5), standards(5) SunOS 5.10 14 Aug 2002 wcwidth(3C)
Related Man Pages |
---|
wcwidth(3c) - opensolaris |
wcwidth_l(3) - mojave |
wcwidth(3) - debian |
wcwidth(3) - netbsd |
wcwidth(3) - opendarwin |