ICONV_CLOSE(3) Library Functions Manual ICONV_CLOSE(3)
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(3) .
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(3) , iconv_open(3) , <iconv.h> .
DERIVATION
Derived from the HP-UX manual.
February 1997 posix.fail