MCPcopy Create free account
hub / github.com/crownengine/crown / find_lookup

Function find_lookup

3rdparty/tinyexpr/tinyexpr.c:216–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static const te_variable *find_lookup(const state *s, const char *name, int len) {
217 int iters;
218 const te_variable *var;
219 if (!s->lookup) return 0;
220
221 for (var = s->lookup, iters = s->lookup_len; iters; ++var, --iters) {
222 if (strncmp(name, var->name, len) == 0 && var->name[len] == '\0') {
223 return var;
224 }
225 }
226 return 0;
227}
228
229
230

Callers 1

next_tokenFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected