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

Function set_occupation

src/cmd.c:205–216  ·  view source on GitHub ↗

If a time is given, use it to timeout this function, otherwise the * function times out by its own means. */

Source from the content-addressed store, hash-verified

203 * function times out by its own means.
204 */
205void
206set_occupation(int (*fn)(void), const char *txt, cmdcount_nht xtime)
207{
208 if (xtime) {
209 go.occupation = timed_occupation;
210 timed_occ_fn = fn;
211 } else
212 go.occupation = fn;
213 go.occtxt = txt;
214 go.occtime = 0;
215 return;
216}
217
218/*
219void

Callers 13

take_offFunction · 0.85
doddoremarmFunction · 0.85
dowipeFunction · 0.85
use_pick_axe2Function · 0.85
doengraveFunction · 0.85
pick_lockFunction · 0.85
doforceFunction · 0.85
start_tinFunction · 0.85
start_eatingFunction · 0.85
eatspecialFunction · 0.85
study_bookFunction · 0.85
use_trapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected