1wstring(3C) Standard C Library Functions wstring(3C)
2
3
4
6 wstring, wscasecmp, wsncasecmp, wsdup, wscol - Process Code string
7 operations
8
10 #include <widec.h>
11
12 int wscasecmp(const wchar_t *s1, const wchar_t *s2);
13
14
15 int wsncasecmp(const wchar_t *s1, const wchar_t *s2, int n);
16
17
18 wchar_t *wsdup(const wchar_t *s);
19
20
21 int wscol(const wchar_t *s);
22
23
25 These functions operate on Process Code strings terminated by wchar_t
26 null characters. During appending or copying, these routines do not
27 check for an overflow condition of the receiving string. In the follow‐
28 ing, s, s1, and s2 point to Process Code strings terminated by a
29 wchar_t null.
30
31 wscasecmp(), wsncasecmp()
32 The wscasecmp() function compares its arguments, ignoring case, and
33 returns an integer greater than, equal to, or less than 0, depending
34 upon whether s1 is lexicographically greater than, equal to, or less
35 than s2. It makes the same comparison but compares at most n Process
36 Code characters. The four Extended Unix Code (EUC) codesets are ordered
37 from lowest to highest as 0, 2, 3, 1 when characters from different
38 codesets are compared.
39
40 wsdup()
41 The wsdup() function returns a pointer to a new Process Code string,
42 which is a duplicate of the string pointed to by s. The space for the
43 new string is obtained using malloc(3C). If the new string cannot be
44 created, a null pointer is returned.
45
46 wscol()
47 The wscol() function returns the screen display width (in columns) of
48 the Process Code string s.
49
51 See attributes(5) for descriptions of the following attributes:
52
53
54
55
56 ┌───────────────────────────────────────────────────────────┐
57 │ATTRIBUTE TYPE ATTRIBUTE VALUE │
58 │MT-Level MT-Safe │
59 └───────────────────────────────────────────────────────────┘
60
62 malloc(3C), string(3C), wcstring(3C), attributes(5)
63
64
65
66SunOS 5.11 29 Dec 1996 wstring(3C)