Open
Description
tinyobjloader-c/tinyobj_loader_c.h
Line 196 in 1ee072e
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.