ICONV\_CLOSE(3) Library Functions Manual ICONV\_CLOSE(3)

# [NAME](#NAME)

iconv\_close - deallocate descriptor for character set conversion

# [SYNOPSIS](#SYNOPSIS)

```
#include <iconv.h>

int iconv_close (iconv_t cd);
```

# [DESCRIPTION](#DESCRIPTION)

The **iconv\_close** function deallocates a conversion descriptor *cd* previously allocated using **iconv\_open**.

# [RETURN VALUE](#RETURN_VALUE)

When successful, the **iconv\_close** function returns 0. In case of error, it sets **errno** and returns -1.

# [CONFORMING TO](#CONFORMING_TO)

POSIX:2024

# [SEE ALSO](#SEE_ALSO)

[**iconv\_open**(3)](/man/os/gnu-libiconv/iconv_open.3) [**iconv**(3)](/man/os/gnu-libiconv/iconv.3)

December 15, 2024 GNU

---

Document: iconv_close(3) from gnu-libiconv 1.19-r10 (Chainguard OS)
Source: https://git.savannah.gnu.org/git/libiconv.git
