[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    euclen(3I) manual page Table of Contents

Name

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

Synopsis

#include <euc.h>

int euclen(const unsigned char *s);

int euccol(const unsigned char *s);

int eucscol(const unsigned char *str);

MT-Level

Safe

Description

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

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

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

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

Files

/usr/lib/locale/locale/LC_CTYPE

See Also

getwidth(3I)


Table of Contents