main.c (576B)
1 int main(int argc, char** argv) { 2 3 if(argc != 2) { 4 printf("Usage: hav {json-filepath}\n"); 5 return -1; 6 } 7 8 9 int size = 0; 10 struct Coordinates* coords = loadJson(argv[1], &size); 11 12 if(coords == NULL) { 13 return -1; 14 } 15 16 // for(int i = 0; i < size; ++i) { 17 // struct Coordinates* current = &coords[i]; 18 // printf("x0: %.10f, x1: %.10f, y0: %.10f, y1: %.10f\n", current->x0, current->x1, current->y0, current->y1); 19 // } 20 21 TIME_BLOCK_EXEC("Free coords", free(coords)); 22 PRINT_REGIONS(); 23 CLEANUP_REGIONS(); 24 }