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

Function is_fld_arrayvalues

src/botl.c:2729–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2727}
2728
2729staticfn boolean
2730is_fld_arrayvalues(
2731 const char *str,
2732 const char *const *arr,
2733 int arrmin, int arrmax,
2734 int *retidx)
2735{
2736 int i;
2737
2738 for (i = arrmin; i < arrmax; i++)
2739 if (!strcmpi(str, arr[i])) {
2740 *retidx = i;
2741 return TRUE;
2742 }
2743 return FALSE;
2744}
2745
2746staticfn int
2747query_arrayvalue(

Callers 1

parse_status_hl2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected