MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                          wcwidth(3C)



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

SYNOPSIS
     #include 

     int wcwidth(wchart wc);


DESCRIPTION
     The wcwidth() function determines the number of column posi-
     tions  required  for  the wide character wc. The value of wc
     must be a character representable as a wchart, 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 posi-
     tions to be occupied  by  the  wide-character  code  wc,  or
     returns  -1  (if  wc does not correspond to a printing wide-
     character code).

ERORS
     No errors are defined.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     CSI                          Enabled                     
    
     Interface Stability          Standard                    
    
     MT-Level                     MT-Safe with exceptions     
    


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









SunOS 5.11          Last change: 14 Aug 2002                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™