covid_list.c
void list(node_t *head)
{
    node_t *temp = head;
    if(head == NULL)
    {
        puts("List is empty\n");
        return;
    }
    while (temp != NULL)
    {
        printf("Date: %s, Cases: %d, Deaths: %d\n", temp->date, temp->cases, temp->deaths);
        temp = temp->next;
    }
}
//This function lists the linked list

This function lists the linked list
This function lists the linked list
void list(node_t *head)
{
    node_t *temp = head;
    if(head == NULL)
    {
        puts("List is empty\n");
        return;
    }
    while (temp != NULL)
    {
        printf("Date: %s, Cases: %d, Deaths: %d\n", temp->date, temp->cases, temp->deaths);
        temp = temp->next;
    }
}
void list ( node_t * head ) { node_t * temp = head ; if ( head == NULL ) { puts ( " \n " ) ; return ; } while ( temp != NULL ) { printf ( " \n " , temp -> date , temp -> cases , temp -> deaths ) ; temp = temp -> next ; } }
This function lists the linked list
This function lists the linked list