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

Function peek_timer

src/timeout.c:2323–2333  ·  view source on GitHub ↗

* Find the timeout of specified timer; return 0 if none. */

Source from the content-addressed store, hash-verified

2321 * Find the timeout of specified timer; return 0 if none.
2322 */
2323long
2324peek_timer(short type, anything *arg)
2325{
2326 timer_element *curr;
2327
2328 for (curr = gt.timer_base; curr; curr = curr->next) {
2329 if (curr->func_index == type && curr->arg.a_void == arg->a_void)
2330 return curr->timeout;
2331 }
2332 return 0L;
2333}
2334
2335/*
2336 * Move all object timers from src to dest, leaving src untimed.

Callers 5

l_obj_timer_peekFunction · 0.85
doname_baseFunction · 0.85
disturb_buried_zombiesFunction · 0.85
obj_has_timerFunction · 0.85
cancel_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected