HP C/iX Library Reference Manual (30026-90004)
Chapter 1 7
Introduction to the HP C/iX Library
Library Header Files
Library Header Files
To use many of the facilities of the HP C/iX library, your C source code should include the
preprocessing directive:
#include
incfile
.h>
Enclosing
incfile
.h in angle brackets tells the preprocessing phase of the compiler to look
for that file in a standard location on the system, the H group of the SYS account for HP
C/iX. For example, if you want to use the fprintf function, your program should specify:
#include stdio.h>
This includes the declaration of fprintf, as well as various types and variables used by
the functions found in the stdio.h header file. The standard include file or files that are
needed for each function are specified in the syntax descriptions provided in chapter 5. The
order of inclusion of the header files using the #include directive makes no difference, and
an error does not occur if you include the same header file more than once.
The following table lists and describes the HP C/iX library header files:
Table 1-2. HP C/iX Library Header Files
Header Description
<assert.h> Defines the assert macro.
<ctype.h> Declares macros and external functions useful for testing and mapping
characters.
<errno.h> Declares error variables and defines macros useful for obtaining a more detailed
description of a library function error.
<fcntl.h>
a
Defines arguments to the open function.
<float.h> Defines macros that describe the floating-point types.
<limits.h> Defines several macros that represent basic C data type limits.
<locale.h> Used for localization. Contains macro definitions, function, and type declarations
needed to select the desired locale.
<malloc.h> Declares memory management functions, mallopt argument functions, and a
structure returned bythe mallinfo function. Memory management functions are
also declared in <stdlib.h>.
<math.h> Contains declarations for the HP C/iX math library functions, as well as
functions in the standard library that return floating-point values. Also defines
the structure and constants used by the matherr error-handling mechanisms.
<memory.h> Declares several functions useful for manipulating character arrays and other
objects treated as character arrays. These functions are also declared in
<string.h>.
<mpe.h> Declares several types, constants, and functions that facilitate using the MPE/iX
operating system interface. See chapter 4 for additional information.