/* Last edited on 2009-11-09 19:34:42 by stolfi */ void show_options(options_t *o); /* Prints the options {o} to {stderr}. */ void show_options(options_t *o) { fprintf(stderr, "-- command line arguments --------------------------------\n"); fprintf(stderr, "maze dimensions = %d x %d\n", o->nx, o->ny); fprintf(stderr, "total cells = %d\n", o->nx * o->ny); char *topology_name[2] = { "open", "torus" }; fprintf(stderr, "topology = %s\n", topology_name[o->torus]); fprintf(stderr, "seed = %d\n", o->seed); if (o->plot_cell_size > 0) { fprintf(stderr, "plot cell size = %.3f mm\n", o->plot_cell_size); } fprintf(stderr, "dump the graph = %c\n", "NY"[o->graph]); fprintf(stderr, "----------------------------------------------------------\n"); } void show_options(options_t *o) { fprintf(stderr, "-- command line arguments --------------------------------\n"); fprintf(stderr, "maze dimensions = %d x %d\n", o->nx, o->ny); fprintf(stderr, "total cells = %d\n", o->nx * o->ny); char *topology_name[2] = { "open", "torus" }; fprintf(stderr, "topology = %s\n", topology_name[o->torus]); fprintf(stderr, "seed = %d\n", o->seed); if (o->plot_cell_size > 0) { fprintf(stderr, "plot cell size = %.3f mm\n", o->plot_cell_size); } fprintf(stderr, "dump the graph = %c\n", "NY"[o->dump]); fprintf(stderr, "----------------------------------------------------------\n"); }