1euclen(3C) Standard C Library Functions euclen(3C)
2
3
4
6 euclen, euccol, eucscol - get byte length and display width of EUC
7 characters
8
10 #include <euc.h>
11
12 int euclen(const unsigned char *s);
13
14
15 int euccol(const unsigned char *s);
16
17
18 int eucscol(const unsigned char *str);
19
20
22 The euclen() function returns the length in bytes of the Extended Unix
23 Code (EUC) character pointed to by s, including single-shift charac‐
24 ters, if present.
25
26
27 The euccol() function returns the screen column width of the EUC char‐
28 acter pointed to by s.
29
30
31 The eucscol() function returns the screen column width of the EUC
32 string pointed to by str.
33
34
35 For the euclen() and euccol(), functions, s points to the first byte of
36 the character. This byte is examined to determine its codeset. The
37 character type table for the current locale is used for codeset byte
38 length and display width information.
39
41 These functions will work only with EUC locales.
42
43
44 These functions can be used safely in multithreaded applications, as
45 long as setlocale(3C) is not called to change the locale.
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌───────────────────────────────────────────────────────────┐
54 │ATTRIBUTE TYPE ATTRIBUTE VALUE │
55 │MT-Level MT-Safe with exceptions │
56 └───────────────────────────────────────────────────────────┘
57
59 getwidth(3C), setlocale(3C), attributes(5)
60
61
62
63SunOS 5.11 20 Dec 1996 euclen(3C)