Mikroc, Atoi, Atol – ABL electronic PIC Microcontrollers PIC16 User Manual
Page 300

mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
292
MikroElektronika: Development tools - Books - Compilers
page
Prototype
int
atoi(char *s);
Description
Function converts the input string
s
into an integer value, and returns the value. Input
string
s
should consist exclusively of decimal digits, with an optional whitespace and a
sign at the beginning. The string will be processed one character at a time, until the
function reaches a character which it doesn’t recognize (this includes a null character).
atoi
Prototype
long
atol(char *s)
Description
Function converts the input string
s
into a long integer value, and returns the value.
Input string
s
should consist exclusively of decimal digits, with an optional whitespace
and a sign at the beginning. The string will be processed one character at a time, until
the function reaches a character which it doesn’t recognize (this includes a null charac-
ter).
atol
Prototype
div_t div(int numer, int denom);
Description
Function computes the result of the division of the numerator
numer
by the denominator
denom
; function returns a structure of type
div_t
comprising quotient (
quot
) and
remainder (
rem
).
div