MCPcopy Create free account
hub / github.com/eggert/tz / close_file

Function close_file

zdump.c:375–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375static void
376close_file(FILE *stream)
377{
378 char const *e = (ferror(stream) ? _("I/O error")
379 : fclose(stream) != 0 ? strerror(errno) : NULL);
380 if (e) {
381 fprintf(stderr, "%s: %s\n", progname, e);
382 exit(EXIT_FAILURE);
383 }
384}
385
386static void
387usage(FILE * const stream, const int status)

Callers 2

usageFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected