Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

conv(3C)

ctype(3C)

setlocale(3C)

ascii(5)

environ(5)

chrtbl(1M)

setchrclass(3C)

NAME

setchrclass − define character classification locale

SYNOPSIS

int setchrclass (chrclass)
char ∗chrclass;

DESCRIPTION

setchrclass initializes the table used by the macros of ctype(3C) and the conversion macros and functions of conv(3C) to a specific character classification set.

setchrclass uses the value of its chrclass argument to construct the name of a file containing the information for the desired character set.  The data file must have the name /lib/locale/chrclass/LC_CTYPE and must have been created by chrtbl(1M).

If chrclass is (char ∗)0, the value of the environment variable LC_CTYPE is used. If LC_CTYPE is not set or is undefined, the value of the environment variable LANG is used. If that too is not set or is undefined, the table retains its current value, which at initialization time is "C". 

FILES

/lib/locale/chrclass/LC_CTYPE
the file containing the character classification tables

SEE ALSO

conv(3C), ctype(3C), setlocale(3C), ascii(5), environ(5). 
chrtbl(1M) in the CX/UX Administrator’s Reference Manual.

NOTES

setchrclass is provided only for compatibility with AT&T System V Release 3. 
Setlocale is the preferred method of specifying the character classification locale. 

DIAGNOSTICS

If setchrclass does not successfully fill the table, the table will not change (initially "C") and −1 is returned.  If everything works, setchrclass returns 0. 

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026