MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / find_lookup

Function find_lookup

extern/tinyexpr/tinyexpr.c:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static const te_variable *find_lookup(const state *s, const char *name, int len) {
207 int iters;
208 const te_variable *var;
209 if (!s->lookup) return 0;
210
211 for (var = s->lookup, iters = s->lookup_len; iters; ++var, --iters) {
212 if (strncmp(name, var->name, len) == 0 && var->name[len] == '\0') {
213 return var;
214 }
215 }
216 return 0;
217}
218
219
220

Callers 1

next_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected