summaryrefslogtreecommitdiff
path: root/iconv.h
blob: 97e793f352f3376af23fdf32685cad3191efc39b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef UNICONV_ICONV_H
#define UNICONV_ICONV_H

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void* iconv_t;

extern iconv_t uc_iconv_open(const char *to, const char *from);
#define iconv_open(to, from) uc_iconv(to, from)

extern size_t uc_iconv (iconv_t cd, char **inbuf,
			size_t *inbytesleft,
			char **outbuf,
			size_t *outbytesleft);
#define iconv(cd, ib, ibl, ob, obl) uc_iconv(cd, ib, ibl, ob, obl)

extern int uc_iconv_close (iconv_t cd);
#define iconv_close(cd) uc_iconv_close(cd)

#ifdef __cplusplus
}
#endif

#endif