mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

atoi

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).

atol

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).

div

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).

page

 

292

MikroElektronika: Development tools - Books - Compilers