| 128 | } |
| 129 | |
| 130 | static 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 | |
| 142 | static void cg_fclose(FILE *f) |
| 143 | { |
no test coverage detected
searching dependent graphs…