User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
615
ANSI C Stdlib Library
The mikroC PRO for PIC32 provides a set of standard ANSI C library functions of general utility.
Important:
- Not all of the standard functions have been included.
- The functions have been mostly implemented according to the ANSI C standard, but certain functions have been
modied in order to facilitate PIC32 programming. Be sure to skim through the description before using standard C
functions.
Library Dependency Tree
Library Functions
- abs
- atof
- atoi
- atol
- div
- ldiv
- uldiv
- labs
- max
- min
- rand
- srand
- xtoi
abs
Prototype
int abs(int a);
Description Function returns the absolute (i.e. positive) value of a.
Example
result = abs(-12); // result = 12