[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1

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

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.

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

For more information about code set conversion, see "Converters Overview for Programming" in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

The "National Language Support Overview for Programming" in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

"Subroutines Overview" in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Contents | Glossary | Home | Search ]