MCPcopy Create free account
hub / github.com/ioi/isolate / cg_fopen

Function cg_fopen

cg.c:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static FILE *cg_fopen(const char *attr)
131{
132 char path[PATH_MAX];
133 cg_makepath(path, sizeof(path), attr);
134
135 FILE *f = fopen(path, "r");
136 if (!f)
137 die("Cannot open %s: %m", path);
138
139 return f;
140}
141
142static void cg_fclose(FILE *f)
143{

Callers 2

raw_get_run_time_msFunction · 0.85
cg_statsFunction · 0.85

Calls 1

cg_makepathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…