setchrclass(3) CLIX setchrclass(3)
NAME
setchrclass - Initializes character classification table
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <ctype.h>
int setchrclass(
char *chrclass );
PARAMETERS
chrclass A pointer to the name of the datafile containing information
for the desired character set. If chrclass is (char*)0, the
value of the environment variable CHRCLASS is used.
DESCRIPTION
The setchrclass() function initializes the table, used by the functions
and macros(listed in RELATED INFORMATION), to a specific character
classification set. The setchrclass() function uses its argument value or
the value of the environment variable CHRCLASS as the name of the datafile
containing the information for the desired character set. These datafiles
are searched for in the directory /lib/chrclass.
If chrclass is (char *)0, the value of the environment variable CHRCLASS
is used. If CHRCLASS is not set or is undefined, the table retains its
current initialization value of ascii.
FILES
/lib/chrclass Directory containing the datafiles for setchrclass().
RETURN VALUES
If the setchrclass() function does not fill the table, the table will not
change (initially ascii) and -1 is returned. If any other errors occur, a
nonzero value is returned. If everything works, setchrclass() returns 0.
RELATED INFORMATION
Commands: chrtbl(1)
Functions: isxdigit(3), islower(3), isupper(3), isalpha(3), isalnum(3),
isspace(3), iscntrl(3), ispunct(3), isprint(3), isgraph(3), isascii(3),
tolower(3), toupper(3), toascci(3), _tolower(3), _toupper(3), stdio(3)
2/94 - Intergraph Corporation 1
setchrclass(3) CLIX setchrclass(3)
Miscellany: environ(4)
2 Intergraph Corporation - 2/94