covid_list.c
//This function adds new node to beginning of the linked list
//The string data is parsed inside the function

This function adds new node to beginning of the linked list
The string data is parsed inside the function
This function adds new node to beginning of the linked list The string data is parsed inside the function
void push(node_t** head_ref, char* date, int cases, int deaths)
{
    node_t* new_node = malloc(sizeof(node_t));
    strcpy(new_node->date, date);
    new_node->cases = cases;
    new_node->deaths = deaths;
    new_node->next = *head_ref;
    *head_ref = new_node;
}
void push ( node_t * * head_ref , char * date , int cases , int deaths ) { node_t * new_node = malloc ( sizeof ( node_t ) ) ; strcpy ( new_node -> date , date ) ; new_node -> cases = cases ; new_node -> deaths = deaths ; new_node -> next = * head_ref ; * head_ref = new_node ; }
This function adds new node to beginning of the linked list
The string data is parsed inside the function
This function adds new node to beginning of the linked list The string data is parsed inside the function