21main(
int argc,
char *argv[])
28 err(
"no files provided");
30 for (i = 1; i < argc; i++) {
34 if ((fp = fopen(argv[i],
"r")) == NULL) {
39 while ((c = fgetc(fp)) != EOF)
char * program_invocation_name
Global value for the program's name.
void ewarn(const char *fmt,...)
Prints a formatted error message to stderr.
void err(const char *fmt,...)
Prints a formatted error message to stderr and exits.