• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* OS/2 iconv() implementation through OS/2 Unicode API
2    Copyright (C) 2001 Free Software Foundation, Inc.
3 
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU Lesser General Public License as published by
6    the Free Software Foundation; either version 2.1 of the License, or
7    (at your option) any later version.
8 
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU Lesser General Public License for more details.
13 
14    You should have received a copy of the GNU Lesser General Public License
15    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
16 
17 #ifndef __ICONV_H__
18 #define __ICONV_H__
19 
20 #include <stddef.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /* FIXME: This belongs in <errno.h>.  */
27 #define EILSEQ 1729
28 
29 #ifndef _ICONV_T
30 typedef void *iconv_t;
31 #endif
32 
33 extern iconv_t iconv_open (const char *, const char *);
34 extern size_t iconv (iconv_t, const char **, size_t *, char **, size_t *);
35 extern int iconv_close (iconv_t);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* __ICONV_H__ */
42