ccsidtocs or cstoccsid Subroutine

Purpose

Provides conversion between coded character set IDs (CCSID) and code set names.

Library

The iconv Library (libiconv.a)

Syntax

#include <iconv.h>

CCSID cstoccsid (* Codeset)
const char *Codeset;

char *ccsidtocs ( CCSID)
CCSID CCSID;

Description

The cstoccsid subroutine returns the CCSID of the code set specified by the Codeset parameter. The ccsidtocs subroutine returns the code set name of the CCSID specified by CCSID parameter. CCSIDs are registered IBM® coded character set IDs.

Parameters

Item Description
Codeset Specifies the code set name to be converted to its corresponding CCSID.
CCSID Specifies the CCSID to be converted to its corresponding code set name.

Return Values

If the code set is recognized by the system, the cstoccsid subroutine returns the corresponding CCSID. Otherwise, null is returned.

If the CCSID is recognized by the system, the ccsidtocs subroutine returns the corresponding code set name. Otherwise, a null pointer is returned.