MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fclose_orDie

Function fclose_orDie

freebsd/contrib/zstd/examples/common.h:111–117  ·  view source on GitHub ↗

! fclose_orDie() : * Close an opened file using given FILE pointer. */

Source from the content-addressed store, hash-verified

109 * Close an opened file using given FILE pointer.
110 */
111static void fclose_orDie(FILE* file)
112{
113 if (!fclose(file)) { return; };
114 /* error */
115 perror("fclose");
116 exit(ERROR_fclose);
117}
118
119/*! fread_orDie() :
120 *

Callers 4

compressFile_orDieFunction · 0.85
compressFile_orDieFunction · 0.85
compressFile_orDieFunction · 0.85
decompressFile_orDieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected