...
lib_str.h/lib_str.c
Prototype
Code Block | ||
---|---|---|
| ||
CPU_INT32S Str_ParseNbr_Int32S (CPU_CHAR *pstr,
CPU_CHAR **pstr_end,
CPU_INT08U nbr_base); |
Arguments
pstr
Pointer to string.
...
pstr = " -12345678901234567890*123456"
nbr_base = 10
nbr = DEF_INT_32S_MIN_VAL
pstr_next = "*123456"
Example Usage
Code Block | ||
---|---|---|
| ||
CPU_INT32S nbr;
CPU_CHAR *pstr_end;
nbr = Str_ParseNbr_Int32S((CPU_CHAR *)"-1234534*-23434>345344",
(CPU_CHAR **)&pstr_end,
(CPU_INT08U ) 10u); |