iconv_close - codeset conversion deallocation function
Synopsis
Description
Return Value
Errors
Examples
Application Usage
Rationale
Future Directions
See Also
Copyright
#include <iconv.h>
int iconv_close(iconv_t cd);
The iconv_close() function shall deallocate 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 shall be closed.
Upon successful completion, 0 shall be returned; otherwise, -1 shall be returned and errno set to indicate the error.
The iconv_close() function may fail if:
The following sections are informative.
EBADF The conversion descriptor is invalid.
None.
None.
None.
None.
iconv() , iconv_open() , the Base Definitions volume of IEEE Std 1003.1-2001, <iconv.h>
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
| POSIX | ICONV_CLOSE (P) | 2003 |