Datasheet

ANSI C STDLIB LIBRARY
The mikroC PRO for AVR provides a set of standard ANSI C library functions of general utility.
Note: Not all of the standard functions have been included.
Note: Functions have been mostly implemented according to the ANSI C standard, but certain
functions have been modified in order to facilitate AVR programming. Be sure to skim through the
description before using standard C functions.
Library Functions
- abs
- atof
- atoi
- atol
- div
- ldiv
- uldiv
- labs
- max
- min
- rand
- srand
- xtoi
abs
atof
550
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
int abs(int a);
Description Function returns the absolute (i.e. positive) value of a.
Prototype
double atof(char *s)
Description
Function converts the input string s into a double precision value and returns the
value. Input string s should conform to the floating point literal format, with an
optional whitespace at the beginning. The string will be processed one character
at a time, until the function reaches a character which it doesn’t recognize
(including a null character).