1wctob(3C)                Standard C Library Functions                wctob(3C)
2
3
4

NAME

6       wctob - wide-character to single-byte conversion
7

SYNOPSIS

9       #include <stdio.h>
10       #include <wchar.h>
11
12       int wctob(wint_t c);
13
14

DESCRIPTION

16       The  wctob()  function  determines whether c corresponds to a member of
17       the extended character set whose  character representation is a  single
18       byte when in the initial shift state.
19
20
21       The  behavior  of this function is affected by the LC_CTYPE category of
22       the current locale.  See environ(5)
23

RETURN VALUES

25       The wctob() function returns EOF if c does not correspond to a  charac‐
26       ter  with length one in the initial shift state.  Otherwise, it returns
27       the single-byte representation of that character.
28

ERRORS

30       No errors are defined.
31

ATTRIBUTES

33       See attributes(5) for descriptions of the following attributes:
34
35
36
37
38       ┌─────────────────────────────┬─────────────────────────────┐
39       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
40       ├─────────────────────────────┼─────────────────────────────┤
41       │Interface Stability          │Standard                     │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │MT-Level                     │MT-Safe with exceptions      │
44       └─────────────────────────────┴─────────────────────────────┘
45

SEE ALSO

47       btowc(3C), setlocale(3C), attributes(5), environ(5), standards(5)
48

NOTES

50       The wctob() function can be used safely in multithreaded  applications,
51       as long as setlocale(3C) is not being called to change the locale.
52
53
54
55SunOS 5.11                        14 Aug 2002                        wctob(3C)
Impressum