MCPcopy Create free account
hub / github.com/NetHack/NetHack / savedsym_find

Function savedsym_find

src/symbols.c:725–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725staticfn struct _savedsym *
726savedsym_find(const char *name, int which_set)
727{
728 struct _savedsym *tmp = saved_symbols;
729
730 while (tmp) {
731 if (which_set == tmp->which_set && !strcmp(name, tmp->name))
732 return tmp;
733 tmp = tmp->next;
734 }
735 return NULL;
736}
737
738staticfn void
739savedsym_add(const char *name, const char *val, int which_set)

Callers 1

savedsym_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected