if (isdigit(*str)) {
- io_tlb_nslabs = simple_strtoul(str, &str, 0);
+ str += parse_integer(str, 0, &io_tlb_nslabs);
and obviously nobody spent even a *second* asking themselves
"what if parse_integer returns an error".
Can anybody explain why parse_integer would return an error, when isdigit(*str)?Also, why is the result (presumably integer) added back to the string?
EDIT: Regarding to "adding to the string" I realize that's just C pointer arithmetic.