src/ListCreation.c
/*
 * FUNCTION NAME: addConnectionToTheList
 *
 * DESCRIPTION:
 * This function adds a node to the ConnectionsList_t *connections_list.
 * Note: it's addHead, not addTail way of adding a node.
 */
FUNCTION NAME: addConnectionToTheList
DESCRIPTION:
This function adds a node to the ConnectionsList_t *connections_list.
Note: it's addHead, not addTail way of adding a node.
FUNCTION NAME : addConnectionToTheList DESCRIPTION : This function adds a node to the ConnectionsList_t * connections_list . Note : it ' s addHead not addTail way of adding a node .
void addConnectionToTheList(ConnectionsList_t* connections_list, const char* city1, const char* city2, double distance)
{
    ConnectionsListNode_t* temp = makeConnectionsListNode(city1, city2, distance);
    if (connections_list->head != NULL) {
        temp->next = connections_list->head;
    }
    connections_list->head = temp;
}
void addConnectionToTheList ( ConnectionsList_t * connections_list , const char * city1 , const char * city2 , double distance ) { ConnectionsListNode_t * temp = makeConnectionsListNode ( city1 , city2 , distance ) ; if ( connections_list -> head != NULL ) { temp -> next = connections_list -> head ; } connections_list -> head = temp ; }
FUNCTION NAME: addConnectionToTheList
 DESCRIPTION:
 This function adds a node to the ConnectionsList_t *connections_list.
FUNCTION NAME : addConnectionToTheList DESCRIPTION : This function adds a node to the ConnectionsList_t * connections_list .