I am trying to create a function that will act on a linked list by creating a new node with the data I pass to it, and then will put it in the right spot in the list. The nodes each have two int variables and a pointer.
struct node *nextptr;
The nodes must be in increasing order, with a nodes datavalStart value being larger then the datavalEnd of the node before it. Much thanks.