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

Function usage

src/printenv.c:55–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53};
54
55void
56usage (int status)
57{
58 if (status != EXIT_SUCCESS)
59 emit_try_help ();
60 else
61 {
62 printf (_("\
63Usage: %s [OPTION] [VARIABLE]...\n\
64Print the values of the specified environment VARIABLE(s).\n\
65If no VARIABLE is specified, print name and value pairs for them all.\n\
66\n\
67"),
68 program_name);
69 oputs (_("\
70 -0, --null\n\
71 end each output line with NUL, not newline\n\
72"));
73 oputs (HELP_OPTION_DESCRIPTION);
74 oputs (VERSION_OPTION_DESCRIPTION);
75 printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
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