src/route.c
/* 
 * Dump the global route table, so I can see if it what I think
 */
Dump the global route table, so I can see if it what I think
Dump the global route table so I can see if it what I think
void print_global_routes() {
    int i=0;
    int j=0;
    for(i = 0; i < g_total_routes; i++) {
        printf("========\n");
        printf("Start: %d Len: %d\n", (route_list[i]).start_time, (route_list[i]).length);
        printf("Route: ");
        for(j = 0; j < (route_list[i]).length; j++) {
            printf("%s ", (route_list[i]).stops[j]);
        }
        printf("\n");
    }
    return;
}
void print_global_routes ( ) { int i = 0 ; int j = 0 ; for ( i = 0 ; i < g_total_routes ; i ++ ) { printf ( " \n " ) ; printf ( " \n " , ( route_list [ i ] ) . start_time , ( route_list [ i ] ) . length ) ; printf ( " " ) ; for ( j = 0 ; j < ( route_list [ i ] ) . length ; j ++ ) { printf ( " " , ( route_list [ i ] ) . stops [ j ] ) ; } printf ( " \n " ) ; } return ; }
Dump the global route table, so I can see if it what I think
Dump the global route table so I can see if it what I think