5.11 Libraries
The MPLAB XC8 C Compiler provides C90- and C99-validated libraries of functions, macros, types, and objects that can assist with your code development.
The Standard C libraries are described in the separate Microchip Unified Standard Library Reference Guide document, whose content is relevant for all MPLAB XC C compilers.
The library includes functions for string manipulation, dynamic memory allocation, data conversion, timekeeping and math functions (trigonometric, exponential and hyperbolic).
The libraries also contain C routines that are implicitly called by programs to perform tasks such as floating-point operations and integer division. These routines do not directly correspond to a function call in the source code. In addition, there are several library functions, such as functions relating to function-level profiling, mid-range EEPROM access, REALICE trace and log etc., that are built with the program as required. These will not be found in any library file.
In addition to the libraries supplied with the compiler, you can create your own libraries from source code you have written.