[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


csid Subroutine

Purpose

Returns the character set ID (charsetID) of a multibyte character.

Library

Standard C Library (libc.a)

Syntax

#include <stdlib.h>


int csid ( String)
const char *String;

Description

The csid subroutine returns the charsetID of the multibyte character pointed to by the String parameter. No validation of the character is performed. The parameter must point to a value in the character range of the current code set defined in the current locale.

Parameters


String Specifies the character to be tested.

Return Values

Successful completion returns an integer value representing the charsetID of the character. This integer can be a number from 0 through n, where n is the maximum character set defined in the CHARSETID field of the charmap. See "Understanding the Character Set Description (charmap) Source File" in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices for more information.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The mbstowcs (mbstowcs Subroutine) subroutine, wcsid subroutine.

National Language Support Overview for Programming and Understanding the Character Set Description (charmap) Source File in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.

Subroutines Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]