/usr/include/iconv_hook/iconv.h is in libiconv-hook-dev 0.0.20021209-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 41 42 43 | /* -*- mode: c -*-
*
* $Id: iconv.h.replace,v 1.1 2002/06/08 09:19:01 tai Exp $
*
*/
/**
* Replacement for real iconv.h.
* This (re-)defines iconv* functions so they will be macro-expanded
* to iconv_hook* functions which are included in this library.
*
* Using this header file, switching to iconv_hook from iconv is
* easy, as adding
*
* -Iiconv_hook_folder -Liconv_hook_folder -liconv_hook
*
* options is the only thing needed.
*/
#ifndef ICONV_H
#define ICONV_H
/* Force override by iconv_hook */
#undef iconv
#undef iconv_open
#undef iconv_close
#define iconv iconv_hook
#define iconv_open iconv_hook_open
#define iconv_close iconv_hook_close
typedef void * iconv_t;
iconv_t
iconv_hook_open(const char *ienc, const char *oenc);
int
iconv_hook_close(iconv_t cd);
size_t
iconv_hook(iconv_t cd,
char **src, size_t *srclen, char **outbuf, size_t *outlen);
#endif
|