1iconv_close(3C) Standard C Library Functions iconv_close(3C)
2
3
4
6 iconv_close - code conversion deallocation function
7
9 #include <iconv.h>
10
11 int iconv_close(iconv_t cd);
12
13
15 The iconv_close() function deallocates the conversion descriptor cd and
16 all other associated resources allocated by the iconv_open(3C) func‐
17 tion.
18
19
20 If a file descriptor is used to implement the type iconv_t, that file
21 descriptor will be closed.
22
23
24 For examples using the iconv_close() function, see iconv(3C).
25
27 Upon successful completion, iconv_close() returns 0; otherwise, it
28 returns −1 and sets errno to indicate the error.
29
31 The iconv_close() function may fail if:
32
33 EBADF The conversion descriptor is invalid.
34
35
37 See attributes(5) for descriptions of the following attributes:
38
39
40
41
42 ┌─────────────────────────────┬─────────────────────────────┐
43 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
44 ├─────────────────────────────┼─────────────────────────────┤
45 │Interface Stability │Standard │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │MT-Level │MT-Safe │
48 └─────────────────────────────┴─────────────────────────────┘
49
51 iconv(3C), iconv_open(3C), attributes(5), standards(5)
52
53
54
55SunOS 5.11 24 Jul 2002 iconv_close(3C)