src/ListCreation.c
/*
 * FUNCTION NAME: makeUniqueCityNode
 *
 * DESCRIPTION:
 * This function allocates memory for a new node and
 * fills it with the name of a city being added to the list.
 *
 * RETURNS:
 * node - created UniqueCitiesListNode_t type node.
 */
FUNCTION NAME: makeUniqueCityNode
DESCRIPTION:
This function allocates memory for a new node and
fills it with the name of a city being added to the list.

created UniqueCitiesListNode_t type node.
FUNCTION NAME : makeUniqueCityNode DESCRIPTION : This function allocates memory for a new node and fills it with the name of a city being added to the list . created UniqueCitiesListNode_t type node .
UniqueCitiesListNode_t* makeUniqueCityNode(const char* city)
{
    UniqueCitiesListNode_t* node = (UniqueCitiesListNode_t*)malloc(sizeof(UniqueCitiesListNode_t));
    checkMemory(node);
    node->city = (char*)malloc(G_CITYS_NAME_LENGTH * sizeof(char));
    checkMemory(node->city);
    node->next = NULL;
    strcpy(node->city, city);
    return node;
}
UniqueCitiesListNode_t * makeUniqueCityNode ( const char * city ) { UniqueCitiesListNode_t * node = ( UniqueCitiesListNode_t * ) malloc ( sizeof ( UniqueCitiesListNode_t ) ) ; checkMemory ( node ) ; node -> city = ( char * ) malloc ( G_CITYS_NAME_LENGTH * sizeof ( char ) ) ; checkMemory ( node -> city ) ; node -> next = NULL ; strcpy ( node -> city , city ) ; return node ; }
FUNCTION NAME: makeUniqueCityNode
 DESCRIPTION:
 This function allocates memory for a new node and
 fills it with the name of a city being added to the list.
FUNCTION NAME : makeUniqueCityNode DESCRIPTION : This function allocates memory for a new node and fills it with the name of a city being added to the list .