[packages] libiconv: extend the library to support more charset conversions
[packages.git] / libs / libiconv / src / include / iconv.h
1 #ifndef _ICONV_H
2 #define _ICONV_H 1
3
4 #include <stddef.h>
5
6 #define _LIBICONV_VERSION 0x010B    /* version number: (major<<8) + minor */
7 extern int _libiconv_version; /* Likewise */
8
9 typedef long iconv_t;
10
11 extern iconv_t
12 iconv_open(const char *tocode, const char *fromcode);
13
14 extern size_t
15 iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
16                   char **outbuf, size_t *outbytesleft);
17
18 extern int
19 iconv_close(iconv_t cd);
20
21 #endif /* _ICONV_H */