iconv_close() — Deallocate code conversion descriptor
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4 |
both |
Format
#include <iconv.h>
int iconv_close(iconv_t cd);
General description
Deallocates the conversion descriptor cd and all other associated resources allocated by the iconv_open() function. For an illustration of using iconv_open(), see Example.
Returned value
If successful, iconv_close() returns 0.
If unsuccessful, iconv_close() returns -1 and sets
errno to one of the following values:
- Error Code
- Description
- EBADF
- cd is not a valid descriptor.
Related information
- “Internationalization: Locales and Character Sets” in z/OS XL C/C++ Programming Guide
- iconv.h
- locale.h
- iconv() — Code conversion
- iconv_open() — Allocate code conversion descriptor
- setlocale() — Set locale