[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 2

wcsid Subroutine

Purpose

Returns the charsetID of a wide character.

Library

Standard C Library (libc.a)

Syntax

#include <stdlib.h>
int wcsid (WC)
const wchar_t WC;

Description

The wcsid subroutine returns the charsetID of the wchar_t character. 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

WC 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 Version 4.3 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 csid subroutine, mbstowcs subroutine.

National Language Support Overview for Programming, Subroutines Overview, Understanding Multibyte Code and Wide Character Code Conversion Subroutines, Understanding the Character Set Description (charmap) Source File in AIX Version 4.3 System Management Concepts: Operating System and Devices.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]