Content-type: text/html Man page of wcwidth

wcwidth

Section: Standard C Library Functions (3C)
Updated: 14 Aug 2002
Index Return to Main Contents
 

NAME

wcwidth - number of column positions of a wide-character code  

SYNOPSIS

#include <wchar.h>

int wcwidth(wchar_t wc);  

DESCRIPTION

The 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 VALUES

The 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).  

ERRORS

No errors are defined.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
CSIEnabled
Interface StabilityStandard
MT-LevelMT-Safe with exceptions

 

SEE ALSO

setlocale(3C), wcswidth(3C), attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:21 GMT, October 02, 2010