Hash :
17951ea2
Author :
Date :
2014-03-04T16:42:19
OS400: iconv functions compatibility wrappers and table builder.
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 29 30 31 32 33 34 35 36 37 38 39 40
/**
*** Declarations for the iconv wrappers.
***
*** See Copyright for the status of this software.
***
*** Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
**/
#ifndef __ICONV_H_
#define __ICONV_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h> /* For size_t. */
typedef void * Iconv_t;
Iconv_t IconvOpen(const char * tocode, const char * fromcode);
size_t Iconv(Iconv_t cd, char * * inbuf, size_t * inbytesleft,
char * * outbuf, size_t * outbytesleft);
int IconvClose(Iconv_t cd);
#ifndef USE_SYSTEM_ICONV
#define iconv_t Iconv_t
#define iconv_open IconvOpen
#define iconv Iconv
#define iconv_close IconvClose
#endif
#ifdef __cplusplus
}
#endif
#endif