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

Function friday_13th

src/calendar.c:205–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205boolean
206friday_13th(void)
207{
208 struct tm *lt = getlt();
209
210 /* tm_wday (day of week; 0==Sunday) == 5 => Friday */
211 return (boolean) (lt->tm_wday == 5 && lt->tm_mday == 13);
212}
213
214int
215night(void)

Callers 1

moveloop_preambleFunction · 0.85

Calls 1

getltFunction · 0.85

Tested by

no test coverage detected