HP C/iX Library Reference Manual (30026-90004)
38 Chapter4
HP C/iX Library Header Descriptions
Header File Contents
Memory Management <malloc.h>
The header <malloc.h> declares several memory management functions, several mallopt
argument macros and a structure returned by the mallinfo function. The following
identifiers are declared in this header file:
NOTE
This header file is not defined by the ANSI C standard. Programs using this
header are likely to be less portable.
Math Library <math.h>
The header <math.h> contains declarations for all functions in the HP C/iX math library.
It contains various function declarations for routines in the standard library that return
floating-point values.
The header also defines structures and constants used by the matherr error-handling
mechanisms, and macros provided for compatibility with other implementations.
lconv type definition A structure type definition for a record containing numeric
and monetary formatting values. See the description of the
localeconv function for more details.
localeconv() function Returns information about the editing symbols of a numeric
quantity specific to a locale.
NULL macro The constant 0.
setlocale() function Controls locale-specific features of the library.
Table 4-5. Memory Management <malloc.h>
Name Type Description
calloc() function Allocates a block of memory.
free() function Frees a block of allocated memory.
mallinfo type definition A data type definition used when declaring parameters and
return values. See the function descriptions for more
information.
mallinfo(
)
function Returns information describing space usage.
malloc() function Allocates a block of memory.
mallopt() function Provides control over the memory allocation algorithm.
realloc() function Changes the size of a block of allocated memory.
Table 4-4. Localization <locale.h>
Name Type Description