MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                         getwidth(3C)



NAME
     getwidth - get codeset information

SYNOPSIS
     #include 
     #include 

     void getwidth(eucwidtht *ptr);


DESCRIPTION
     The getwidth() function reads the character class table  for
     the  current  locale to get information on the supplementary
     codesets. getwidth() sets this information into  the  struct
     eucwidtht.  This  struct  is defined in  and has the
     following members:

       short int   eucw1,eucw2,eucw3;
       short int   scrw1,scrw2,scrw3;
       short int   pcw;
       char        multibyte;



     Codeset width values for supplementary codesets 1, 2, and  3
     are  set in eucw1, eucw2, and eucw3, respectively. Screen
     width values for supplementary codesets 1, 2, and 3 are  set
     in scrw1, scrw2, and scrw3, respectively.


     The width of  Extended Unix Code (EUC) Process Code  is  set
     in pcw. The multibyte entry is set to 1 if multibyte char-
     acters are used, and set to 0 if only single-byte characters
     are used.

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



     
     ATRIBUTE TYPE                ATRIBUTE VALUE             
     MT-Level                      MT-Safe with exceptions     
    


SEE ALSO
     euclen(3C), setlocale(3C), attributes(5)

NOTES




SunOS 5.11          Last change: 20 Dec 1996                    1






Standard C Library Functions                         getwidth(3C)



     The getwidth()  function  can  be  used  safely  in  a  mul-
     tithreaded  application,  as  long  as  setlocale(3C) is not
     being called to change the locale.


     The getwidth() function will only work with EUC locales.

















































SunOS 5.11          Last change: 20 Dec 1996                    2



OpenSolaris man pages main menu

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