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

Function center

payloads/coreinfo/coreinfo.c:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static void center(int row, const char *str)
145{
146 int j, len = strlen(str);
147
148 wmove(stdscr, row, 0);
149 for (j = 0; j < SCREEN_X; j++)
150 waddch(stdscr, ' ');
151
152 mvprintw(row, (SCREEN_X - len) / 2, str);
153}
154
155/* FIXME: Currently unused. */
156#if 0

Callers 2

loopFunction · 0.85

Calls 4

strlenFunction · 0.85
wmoveFunction · 0.50
waddchFunction · 0.50
mvprintwFunction · 0.50

Tested by

no test coverage detected