blob: cef06f604953fede48996271e60f3db89de9f8d7 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#ifndef _ICONV_H
2#define _ICONV_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Rich Felker400c5e52012-09-06 22:44:55 -04008#if __STDC_VERSION__ >= 199901L
9#define __restrict restrict
10#elif !defined(__GNUC__)
11#define __restrict
12#endif
13
Rich Felker0b44a032011-02-12 00:22:29 -050014#define __NEED_size_t
15
16#include <bits/alltypes.h>
17
18typedef void *iconv_t;
19
20iconv_t iconv_open(const char *, const char *);
Rich Felker400c5e52012-09-06 22:44:55 -040021size_t iconv(iconv_t, char **__restrict, size_t *__restrict, char **__restrict, size_t *__restrict);
Rich Felker0b44a032011-02-12 00:22:29 -050022int iconv_close(iconv_t);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif