libiconv

Marco Atzeri marco_atzeri@yahoo.it
Thu Oct 28 17:31:00 GMT 2010


--- Gio 28/10/10, Samuel Thibault  ha scritto:

> Marco Atzeri, le Thu 28 Oct 2010
> 18:08:18 +0100, a écrit :
> > is the additional "lib" correct ?
> 
> Yes. You need to #include <iconv.h> to get the proper
> refname.
> 
> Samuel
> 

Hi Samuel,
#include <iconv.h>

it is already there

and /usr/include/iconv.h seems to not include 
libiconv*  function but only iconv* ones

-------------------------------------------
#ifndef _ICONV_H_
#define _ICONV_H_

#include <_ansi.h>
#include <reent.h>
#include <sys/types.h>
#include <sys/_types.h>

/* iconv_t: charset conversion descriptor type */
typedef _iconv_t iconv_t;

_BEGIN_STD_C

#ifndef _REENT_ONLY
iconv_t
_EXFUN(iconv_open, (_CONST char *, _CONST char *));

size_t
_EXFUN(iconv, (iconv_t, char **, size_t *, char **, size_t *));

int
_EXFUN(iconv_close, (iconv_t));
#endif

iconv_t
_EXFUN(_iconv_open_r, (struct _reent *, _CONST char *, _CONST char *));

size_t
_EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **,
                  size_t *, char **, size_t *));

int
_EXFUN(_iconv_close_r, (struct _reent *, iconv_t));

_END_STD_C

#endif /* #ifndef _ICONV_H_ */
--------------------------------------------

Marco





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list