MCPcopy Index your code
hub / github.com/NetHack/NetHack / count_apes

Function count_apes

src/options.c:9190–9202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9188}
9189
9190staticfn int
9191count_apes(void)
9192{
9193 int numapes = 0;
9194 struct autopickup_exception *ape = ga.apelist;
9195
9196 while (ape) {
9197 numapes++;
9198 ape = ape->next;
9199 }
9200
9201 return numapes;
9202}
9203
9204DISABLE_WARNING_FORMAT_NONLITERAL
9205

Callers 3

dotogglepickupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected