Guardian C Library Calls Reference Manual

Summary of Library Header Files
Guardian TNS C Library Calls Reference Manual128833 2-9
<mathh>
Here are the macros that describe the integral types short and unsigned short. Each
macro name is followed by its value and its meaning.
Here are the macros that describe the integral type long long. Each macro name is
followed by its value and its meaning.
<localeh>
The header localeh declares the functions setlocale and localeconv. In addition, the
header contains the locale category macro and the lconv structure.
At any time, a C program has a current “locale” that is a collection of information that
describes the conventions appropriate to some environment, or to some nationality,
culture and language. The setlocale function is the interface to the program’s locale. The
setlocale function causes the program’s current locale to change to another specified
locale. The standard C locale is the only supported locale in the Guardian environment.
The locale category macro defines the standard locale categories that can be changed in
any given locale. The locale categories are described under the setlocale function in
Section 3, “Reference to Library Calls.
The localeconv function returns a pointer to a structure of type lconv that contains
information useful for formatting numeric and monetary information. The lconv
structure is described under the localeconv function in Section 3, “Reference to Library
Calls.
<mathh>
The header mathh declares several mathematical functions and defines one object-like
macro.
The mathematical functions are:
acos asin atan atan2 ceil cos
cosh exp fabs floor fmod frexp
ldexp log log10 modf pow sin
sinh sqrt tan tanh
The macro is HUGE_VAL. The mathematical functions return HUGE_VAL when an
overflow occurs.
SHRT_MIN
-32768 Minimum value for a short variable
SHRT_MAX
32767 Maximum short value
USHRT_MAX
65535 Maximum unsigned short value
LLONG_BIT
64 Number of bits in a long long variable
LLONG_MIN
-9223372036854775807 Minimum long long value
LLONG_MAX
9223372036854775807 Maximum long long value