Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

cconv_close (3C)

Name

cconv_close - character sequence based code conversion deallocation function

Synopsis

#include <iconv.h>
int cconv_close(cconv_t cd);

Description

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

See EXAMPLES section of cconv(3C) for examples on how to use the function.

Return Values

Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.

Errors

The cconv_close() function may fail if:

EBADF

The conversion descriptor is invalid.

Attributes

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

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

See Also

cconv(3C), cconv_open(3C), cconvctl(3C), attributes(7)