iconv.h 474 字节
Newer Older
R
Rich Felker 已提交
1 2 3 4 5 6 7
#ifndef _ICONV_H
#define _ICONV_H

#ifdef __cplusplus
extern "C" {
#endif

8 9 10 11 12 13
#if __STDC_VERSION__ >= 199901L
#define __restrict restrict
#elif !defined(__GNUC__)
#define __restrict
#endif

R
Rich Felker 已提交
14 15 16 17 18 19 20
#define __NEED_size_t

#include <bits/alltypes.h>

typedef void *iconv_t;

iconv_t iconv_open(const char *, const char *);
21
size_t iconv(iconv_t, char **__restrict, size_t *__restrict, char **__restrict, size_t *__restrict);
R
Rich Felker 已提交
22 23 24 25 26 27 28
int iconv_close(iconv_t);

#ifdef __cplusplus
}
#endif

#endif