---
name: "iconv_close"
section: "3"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/iconv_close"
---

# iconv\_close(3)

deallocate descriptor for character set conversion

## NAME

iconv\_close - deallocate descriptor for character set conversion

## LIBRARY

Standard C library (*libc*, *-lc*)

## 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**(3)](/iconv_open/3.md).

## RETURN VALUE

On success, **iconv\_close**() returns 0; otherwise, it returns -1 and sets *errno* to indicate the error.

## ATTRIBUTES

For an explanation of the terms used in this section, see [**attributes**(7)](/attributes/7.md).

| | | |
| --- | --- | --- |
| **Interface** | **Attribute** | **Value** |
| **iconv\_close**() | Thread safety | MT-Safe |

## STANDARDS

POSIX.1-2008.

## HISTORY

glibc 2.1. POSIX.1-2001.

## SEE ALSO

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