HP 9000 User Manual page 85

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

6
Local Definition Tables
!OOOmO!
Q
environment
COPY OF
LANGUAGE TABLE
collation sequence
character type info
shift info
locale info
L
_ _ _ _ _
PROCESS HEAP
'c'
PROGRAM
mainO (
setiocale(LC _ALL,'"');
·
·
catd=eatopen(lname",O);
·
towupper(c);
iswalpha(c);
scanf(catget( ...
)x,y);
wcscmp(s1,s2)
printf( catgets( ... )a,b);
catclose( ... )
Figure 6·2. The Program Environment
Retrieving Locale Information
Accessing Language Tables
Message Catalogs
o
o
Each supported language has an associated language table that contains
locale-specific information.
You can also use the NLS nl_langinfo routine to programmatically retrieve
locale-specific information in your programs. To call nl_langinfo, you
. must supply a single parameter indicating the type of information you are
requesting:
nl_langinfoCtype);
6·8
Developing International Software

Advertisement

Table of Contents
loading

Table of Contents