HP C/iX Library Reference Manual (30026-90004)

Chapter 4 37
HP C/iX Library Header Descriptions
Header File Contents
Localization <locale.h>
The header <locale.h> contains a structure definition, several macro definitions, and the
declarations for two functions. These allow you to select the desired locale at run time.
This header is used for Native Language Support (NLS).
The macro definitions are constants that define the various categories of objects that can
be localized, such as the collating sequence used in sorting and the monetary symbol of the
local currency. The structure lconv defines a record used for holding values associated
with locale-specific numeric formatting (monetary and otherwise). The functions set and
retrieve the current locale and manipulate the numeric formatting values.
The following identifiers are declared in <locale.h>:
SCHAR_MAX The maximum value stored in a signed char.
SCHAR_MIN The minimum value stored in a signed char.
SHRT_MAX The maximum value stored in a short.
SHRT_MIN The minimum value stored in a short.
UCHAR_MAX The maximum value stored in an unsigned char.
UINT_MAX The maximum value stored in an unsigned int.
ULONG_MAX The maximum value stored in an unsigned long.
USHRT_MAX The maximum value stored in an unsigned short.
Table 4-4. Localization <locale.h>
Name Type Description
LC_ALL macro A constant used to define a
category
of localizable objects.
Sets and gets the current heterogeneous locales used by all
categories of localizable objects.
LC_COLLATE macro The
category
that controls the current locale of the strcoll
and strxfrm functions.
LC_CTYPE macro The
category
that controls the current locale of the character
handling functions.
LC_MONETARY macro The
category
that controls the current locale for monetary
formatting by the localeconv function.
LC_NUMERIC macro The
category
that controls the current locale for
decimal-point, digit separator, and monetary formatting by
the localeconv function.
LC_TIME macro The
category
that controls the current locale for time
formatting by the strftime function.
Table 4-3. Integral Type Limits <limits.h>
Name Description