NAME

iconv_close - codeset conversion deallocation function

SYNOPSIS

#include <iconv.h>

int iconv_close(iconv_t cd);

DESCRIPTION

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

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

RETURN VALUE

Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.

ERRORS

The iconv_close() function may fail if:

[EBADF]
The conversion descriptor is invalid.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

iconv(), iconv_open(), <iconv.h>.

DERIVATION

Derived from the HP-UX manual.