MCPcopy Create free account
hub / github.com/git/git / fprintf_or_die

Function fprintf_or_die

write-or-die.c:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void fprintf_or_die(FILE *f, const char *fmt, ...)
44{
45 va_list ap;
46 int ret;
47
48 va_start(ap, fmt);
49 ret = vfprintf(f, fmt, ap);
50 va_end(ap);
51
52 if (ret < 0) {
53 check_pipe(errno);
54 die_errno("write error");
55 }
56}
57
58static int maybe_fsync(int fd)
59{

Callers 1

Calls 2

check_pipeFunction · 0.85
die_errnoFunction · 0.85

Tested by

no test coverage detected