Datasheet
atoi
atol
div
ldiv
551
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
int atoi(char *s);
Description
Function converts the input string s into an integer value and returns the value.
The 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 char-
acter at a time, until the function reaches a character which it doesn’t recognize
(including a null character).
Prototype
long atol(char *s)
Description
Function converts the input string s into a long integer value and returns the
value. The 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 (including a null character).
Prototype
div_t div(int number, int denom);
Description
Function computes the result of division of the numerator number by the denom-
inator denom; the function returns a structure of type div_t comprising quotient
(quot) and remainder (rem), see Div Structures.
Prototype
ldiv_t ldiv(long number, long denom);
Description
Function is similar to the div function, except that the arguments and result
structure members all have type long.
Function computes the result of division of the numerator
number by the denom-
inator denom; the function returns a structure of type ldiv_t comprising quotient
(quot) and remainder (rem), see Div Structures.