MCPcopy Create free account
hub / github.com/RenderKit/embree / getInt

Function getInt

tutorials/common/scenegraph/obj_loader.cpp:68–73  ·  view source on GitHub ↗

! Read int from a string. */

Source from the content-addressed store, hash-verified

66
67 /*! Read int from a string. */
68 static inline int getInt(const char*& token) {
69 token += strspn(token, " \t");
70 int n = atoi(token);
71 token += strcspn(token, " \t\r");
72 return n;
73 }
74
75 /*! Read Vec2f from a string. */
76 static inline Vec2f getVec2f(const char*& token) {

Callers 1

OBJLoaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected