7.2 Header Files

The list of header files required for using the libraries of the RX are listed below.

The macro definitions and function declarations are described in each file.

Table 7.2

Library Types and Corresponding Standard Include Files

Library Type

Description

Standard Include File

Program diagnostics

Outputs program diagnostic information.

<assert.h>

Character handling

Handles and checks characters.

<ctype.h>

Mathematics

Performs numerical calculations such as trigonometric functions.

<math.h>
<mathf.h>

Non-local jumps

Supports transfer of control between functions.

<setjmp.h>

Variable arguments

Supports access to variable arguments for functions with such arguments.

<stdarg.h>

Input/output

Performs input/output handling.

<stdio.h>

General utilities

Performs C program standard processing such as storage area management.

<stdlib.h>

String handling

Performs string comparison, copying, etc.

<string.h>

Complex arithmetic

Performs complex number operations.

<complex.h>

Floating-point environment

Supports access to floating-point environment.

<fenv.h>

Integer type format conversion

Manipulates greatest-width integers and converts integer format.

<inttypes.h>

Multibyte and wide characters

Manipulates multibyte characters.

<wchar.h>
<wctype.h>

In addition to the above standard include files, standard include files consisting solely of macro name definitions, shown in table 6.3, are provided to improve programming efficiency.

Table 7.3

Standard Include Files Comprising Macro Name Definitions

Standard Include File

Description

<stddef.h>

Defines macro names used in common by the standard include files.

<limits.h>

Defines various limit values relating to compiler internal processing.

<errno.h>

Defines the value to be set in errno when an error is generated in a library function.

<float.h>

Defines various limit values relating to the limits of floating-point numbers.

<iso646.h>

Defines alternative spellings of macro names.

<stdbool.h>

Defines macros relating to logical types and values.

<stdint.h>

Declares integer types with specified width and defines macros.

<tgmath.h>

Defines type-generic macros.