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

Function max_rank_sz

src/botl.c:401–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void
402max_rank_sz(void)
403{
404 int i;
405 size_t r, maxr = 0;
406
407 for (i = 0; i < 9; i++) {
408 if (gu.urole.rank[i].m && (r = strlen(gu.urole.rank[i].m)) > maxr)
409 maxr = r;
410 if (gu.urole.rank[i].f && (r = strlen(gu.urole.rank[i].f)) > maxr)
411 maxr = r;
412 }
413 gm.mrank_sz = (int) maxr;
414 return;
415}
416
417#ifdef SCORE_ON_BOTL
418long

Callers 3

dorecoverFunction · 0.85
change_sexFunction · 0.85
u_init_miscFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected