---
name: "libiconv_iconv_close"
section: "3"
platform: "linux"
package: "libiconv"
version: "1.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libiconv_iconv_close"
---

# libiconv\_iconv\_close(3)

deallocate descriptor for character set conversion

## NAME

iconv\_close - deallocate descriptor for character set conversion

## SYNOPSIS

```
#include <iconv.h>

int iconv_close (iconv_t cd);
```

## DESCRIPTION

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

## RETURN VALUE

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

## CONFORMING TO

POSIX:2024

## SEE ALSO

[**iconv\_open**(3)](/iconv_open/3.md) [**iconv**(3)](/iconv/3.md)
