ICONV(3) | Linux Programmer's Manual | ICONV(3) |
NAME
iconv - perform character set conversionSYNOPSIS
#include <iconv.h>size_t iconv (iconv_t cd,
const char* * inbuf, size_t * inbytesleft,
char* * outbuf, size_t * outbytesleft);
DESCRIPTION
The argument cd must be a conversion descriptor created using the function iconv_open.RETURN VALUE
The iconv function returns the number of characters converted in a non-reversible way during this call; reversible conversions are not counted. In case of error, it sets errno and returns (size_t)(-1).ERRORS
The following errors can occur, among others:- E2BIG
- There is not sufficient room at *outbuf.
- EILSEQ
- An invalid multibyte sequence has been encountered in the input.
- EINVAL
- An incomplete multibyte sequence has been encountered in the input.
CONFORMING TO
POSIX:2001SEE ALSO
iconv_open(3), iconvctl(3) iconv_close(3)September 7, 2008 | GNU |