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

Function grepsearch

util/makedefs.c:763–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763static struct grep_var *
764grepsearch(const char *name)
765{
766 /* XXX make into binary search */
767 int x = 0;
768
769 while (x < SIZE(grep_vars) - 1) {
770 if (!strcmp(grep_vars[x].name, name))
771 return &grep_vars[x];
772 x++;
773 }
774 return 0;
775}
776
777static int
778grep_check_id(const char *id)

Callers 2

do_ext_makedefsFunction · 0.85
grep_check_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected