-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
Description
tinyobjloader-c/tinyobj_loader_c.h
Line 196 in 1ee072e
| static int my_atoi(const char *c) { |
for atoi function really hard to check errors, because it returns integer for input params, so you can't check it for bad input. You can use sscanf(buf, "%d", &n) to get integer from string and return value will be != 1 if there is problems.