[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    iconv_close(3) manual page Table of Contents

Name

iconv_close - code conversion deallocation function

Synopsis

#include <iconv.h>

int iconv_close(iconv_t cd);

MT-Level

MT-Safe

Description

The iconv_close() function deallocates the conversion descriptor cd and all other associated resources allocated by the iconv_open(3) function.

If a file descriptor is used to implement the type iconv_t, that file descriptor will be closed.

Return Values

Upon successful completion, iconv_close() returns 0; otherwise, it returns -1 and sets errno to indicate the error.

Errors

The iconv_close() function may fail if:
EBADF
The conversion descriptor is invalid.

See Also

iconv(3) , iconv_open(3)


Table of Contents