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

Function livelog_printf

src/pline.c:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void
514livelog_printf(long ll_type, const char *line, ...)
515{
516 char gamelogbuf[BUFSZ * 2];
517 va_list the_args;
518
519 va_start(the_args, line);
520 (void) vsnprintf(gamelogbuf, sizeof gamelogbuf, line, the_args);
521 va_end(the_args);
522
523 gamelog_add(ll_type, svm.moves, gamelogbuf);
524 strNsubst(gamelogbuf, "\t", "_", 0);
525 livelog_add(ll_type, gamelogbuf);
526}
527
528#else
529

Callers 15

chat_with_leaderFunction · 0.85
doneFunction · 0.85
really_doneFunction · 0.85
welcomeFunction · 0.85
losexpFunction · 0.85
pluslvlFunction · 0.85
onameFunction · 0.85
potion_dipFunction · 0.85
first_weapon_hitFunction · 0.85
doaltarobjFunction · 0.85
goto_levelFunction · 0.85
nhl_pcallFunction · 0.85

Calls 3

gamelog_addFunction · 0.85
strNsubstFunction · 0.85
livelog_addFunction · 0.85

Tested by

no test coverage detected