Datasheet

xtoi
Div Structures
typedef struct divstruct {
int quot;
int rem;
} div_t;
typedef struct ldivstruct {
long quot;
long rem;
} ldiv_t;
typedef struct uldivstruct {
unsigned long quot;
unsigned long rem;
} uldiv_t;
553
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
unsigned xtoi(register char *s);
Description
Function converts the input string s consisting of hexadecimal digits into an inte-
ger value. The input parameter s should consist exclusively of hexadecimal dig-
its, 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).