4 ms·
You could implement something comparable: int main() { with_open_file_for_writing("foo.dat", [](FILE* fp) { fprintf(fp, "old style I/O,
by civility 10y ago
You could implement something comparable:
int main() {
with_open_file_for_writing("foo.dat", [](FILE* fp) {
fprintf(fp, "old style I/O, automatically closed\n");
});
return 0;
}