college/Spring-2023/CS-2124/Assignment-1/src/C3.c

17 lines
280 B
C

#include "src.h"
#include <stdio.h>
void c3() {
FILE *f = fopen(FNAME, "w+");
fprintf(f, "106");
fclose(f);
solve(3, "Writing to a file",
fmtstr("Wrote '106' to: %s", get_file_path(FNAME)));
}
int main() {
print_header();
c3();
return 0;
}