16main(
int argc,
char *argv[])
23 errc(argc,
"multiple arguments provided");
25 warn(
"no argument provided, using default word\n");
30 printf(
"Hello, %s!\n", word);
char * program_invocation_name
Global value for the program's name.
void warn(const char *fmt,...)
Prints a formatted warning message to stderr.
void errc(const int code, const char *fmt,...)
Prints a formatted error message to stderr and exits with the given exit code.