man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

euccol(3C)

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);

Description

The euclen() function returns the length in bytes of the Extended Unix Code (EUC) character pointed to by s, including 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 determine 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 applications, as long as setlocale(3C) is not called to change the locale.

Attributes

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

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

See Also

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