[packages] libiconv: add stddef.h include to stub header
[packages.git] / libs / libiconv / src / iconv.c
1 /*
2  * Simple iconv library stub so that programs have something to link against
3  */
4
5 #include <stddef.h>
6
7 typedef void *iconv_t;
8
9 iconv_t iconv_open (const char *tocode, const char *fromcode)
10 {
11         return (iconv_t)(-1);
12 }
13
14 size_t iconv (iconv_t cd, char **inbuf, size_t *inbytesleft,
15                           char **outbuf, size_t *outbytesleft)
16 {
17         return 0;
18 }
19
20 int iconv_close (iconv_t cd)
21 {
22         return 0;
23 }