Library Functions

This topic describes the standard C/C++ library functions and the ILE C/C++ extensions to the library functions, except for the ILE C/C++ MI functions. See the ILE C/C++ for AS/400 MI Library Reference for more information about the MI functions.

Each library function that is listed in this section contains:
  • A format description that shows the include file that declares the function.
  • The data type that is returned by the function.
  • The required data types of the arguments to the function.
This example shows the format of the log() function:
   #include <math.h>
   double log(double x);
The example shows that:
  • you must include the file math.h in the program.
  • the log() function returns type double.
  • the log() function requires an argument x of type double.

Examples throughout the section illustrate the use of library functions and are not necessarily complete.

This topic lists the library functions in alphabetic order. If you are unsure of the function you want to use, see the summary of the library functions in The C/C++ Library.

Note: All functions are considered threadsafe unless noted otherwise.