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

Function N_times

src/insight.c:361–380  ·  view source on GitHub ↗

"once" vs "twice" vs "17 times", used in several places */

Source from the content-addressed store, hash-verified

359
360/* "once" vs "twice" vs "17 times", used in several places */
361staticfn char *
362N_times(long n, char *outbuf)
363{
364 switch (n) {
365 case 0:
366 default:
367 Sprintf(outbuf, "%ld times", n);
368 break;
369 case 1:
370 Strcpy(outbuf, "once");
371 break;
372 case 2:
373 Strcpy(outbuf, "twice");
374 break;
375 case 3:
376 Strcpy(outbuf, "thrice");
377 break;
378 }
379 return outbuf;
380}
381
382void
383enlightenment(

Callers 3

attributes_enlightenmentFunction · 0.85
show_conductFunction · 0.85
list_vanquishedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected