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

Function usage

src/tty.c:58–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58void
59usage (int status)
60{
61 if (status != EXIT_SUCCESS)
62 emit_try_help ();
63 else
64 {
65 printf (_("Usage: %s [OPTION]...\n"), program_name);
66 fputs (_("\
67Print the file name of the terminal connected to standard input.\n\
68\n\
69"), stdout);
70 oputs (_("\
71 -s, --silent, --quiet\n\
72 print nothing, only return an exit status\n\
73"));
74 oputs (HELP_OPTION_DESCRIPTION);
75 oputs (VERSION_OPTION_DESCRIPTION);
76 emit_ancillary_info (PROGRAM_NAME);
77 }
78 exit (status);
79}
80
81int
82main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected