MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                           euclen(3C)



NAME
     euclen, euccol, eucscol - get byte length and display  width
     of EUC characters

SYNOPSIS
     #include 

     int euclen(const unsigned char *s);


     int euccol(const unsigned char *s);


     int eucscol(const unsigned char *str);


DESCRIPTION
     The euclen() function returns the length  in  bytes  of  the
     Extended  Unix Code (EUC) character pointed to by s, includ-
     ing single-shift characters, if present.


     The euccol() function returns the screen column width of the
     EUC character pointed to by s.


     The eucscol() function returns the screen  column  width  of
     the EUC string pointed to by str.


     For the euclen() and euccol(), functions, s  points  to  the
     first byte of the character. This byte is examined to deter-
     mine its codeset. The character type table for  the  current
     locale  is  used  for  codeset byte length and display width
     information.

USAGE
     These functions will work only with EUC locales.


     These functions can be used safely in multithreaded applica-
     tions,  as long as setlocale(3C) is not called to change the
     locale.

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








SunOS 5.11          Last change: 20 Dec 1996                    1






Standard C Library Functions                           euclen(3C)



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


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















































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 ™