void *returnMin(PQueue q){
if (q.list == NULL){
printf("List is empty.\n");
} else if (q.list->head == NULL){
printf("List is empty.\n");
} else {
return q.list->head;
}
}
Currently working on Priority queues, everything seems to be working except when I try to return the min and max priorities, I get the error. We are using 3 structs, the 3rd one being a struct pointer.