covid_queue.c
//This function lists the linked list

This function lists the linked list
This function lists the linked list
void list(queue_t *q)
{
    node_t *temp = q->front;
    if(temp == 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 ( queue_t * q ) { node_t * temp = q -> front ; if ( temp == 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