MCPcopy Create free account
hub / github.com/coreutils/coreutils / print_heading

Function print_heading

src/pinky.c:397–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395 in UTMP_BUF, which should have N elements. */
396
397static void
398print_heading (void)
399{
400 printf ("%-8s", _("Login"));
401 if (include_fullname)
402 printf (" %-19s", _("Name"));
403 printf (" %-9s", _(" TTY"));
404 if (include_idle)
405 printf (" %-6s", _("Idle"));
406 printf (" %-*s", time_format_width, _("When"));
407#ifdef HAVE_STRUCT_XTMP_UT_HOST
408 if (include_where)
409 printf (" %s", _("Where"));
410#endif
411 putchar ('\n');
412}
413
414/* Display UTMP_BUF, which should have N entries. */
415

Callers 1

scan_entriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected