1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdio.h> #include "grids.h" #include "precision.h" #include "fractal_render.h" int main(const int argc, char* argv[]){ char* input_file = "test.grid"; FILE* file = fopen(input_file, "rb"); grid_t* grid = read_grid(file); fclose(file); if(!grid) return 1; print_grid_info(grid); free_grid(grid); return 0; }