/* g.mapsets Allow user to select new mapset path */ #define MAIN #include "externs.h" #include "local_proto.h" #include int main (int argc, char **argv) { G_gisinit (argv[0]); G_clear_screen () ; fprintf (stdout,"MAPSET SEARCH LIST UTILITY"); fprintf (stdout," LOCATION: %s MAPSET: %s\n\n", G_location(), G_mapset()); get_available_mapsets(); do { display_mapset_path(1); display_available_mapsets(1); } while (get_mapset_path() < 0); set_mapset_path(); return 0; }