MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / find_lookup

Function find_lookup

external_libraries/tinyexpr/tinyexpr/tinyexpr.c:242–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static const te_variable *find_lookup(const state *s, const char *name, int len) {
243 int iters;
244 const te_variable *var;
245 if (!s->lookup) return 0;
246
247 for (var = s->lookup, iters = s->lookup_len; iters; ++var, --iters) {
248 if (strncmp(name, var->name, len) == 0 && var->name[len] == '\0') {
249 return var;
250 }
251 }
252 return 0;
253}
254
255
256

Callers 1

next_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected