Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2017
 
 

iconv_close(3C)

Name

iconv_close - code conversion deallocation function

Synopsis

#include <iconv.h>

int iconv_close(iconv_t cd);

Description

The iconv_close() function deallocates the conversion descriptor cd and all other associated resources allocated by the iconv_open(3C) function.

If a file descriptor is used to implement the type iconv_t, that file descriptor will be closed.

For examples using the iconv_close() function, see iconv(3C).

Return Values

Upon successful completion, iconv_close() returns 0; otherwise, it returns −1 and sets errno to indicate the error.

Errors

The iconv_close() function may fail if:

EBADF

The conversion descriptor is invalid.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See Also

iconv(3C), iconv_open(3C), attributes(5), standards(5)