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

Function center

src/rip.c:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73#define YEAR_LINE 12 /* *char[] line # for year */
74
75staticfn void
76center(int line, char *text)
77{
78 char *ip, *op;
79 ip = text;
80 op = &gr.rip[line][STONE_LINE_CENT - ((strlen(text) + 1) >> 1)];
81 while (*ip)
82 *op++ = *ip++;
83}
84
85void
86genl_outrip(winid tmpwin, int how, time_t when)

Callers 1

genl_outripFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected