| 373 | } |
| 374 | |
| 375 | FILE *xfdopen(int fd, const char *mode) |
| 376 | { |
| 377 | FILE *stream = fdopen(fd, mode); |
| 378 | if (!stream) |
| 379 | die_errno("Out of memory? fdopen failed"); |
| 380 | return stream; |
| 381 | } |
| 382 | |
| 383 | FILE *fopen_for_writing(const char *path) |
| 384 | { |
no test coverage detected