MCPcopy Create free account
hub / github.com/Apress/Ray-Tracing-Gems-II / parseInt

Function parseInt

Chapter_39/tiny_obj_loader.h:771–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 }
770
771 static inline int parseInt(const char **token) {
772 (*token) += strspn((*token), " \t");
773 int i = atoi((*token));
774 (*token) += strcspn((*token), " \t\r");
775 return i;
776 }
777
778 // Tries to parse a floating point number located at s.
779 //

Callers 3

parseTagTripleFunction · 0.70
LoadMtlFunction · 0.70
LoadObjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected