I have run my code through VS debugger, and there are no warnings or errors.
My code reads in information from a file and puts it into a linked list.
For some reason, my addOfficial function isn't working correctly when it reaches the "else" statement. It adds a node to the head with the 'if', but after that it doesn't continue to add nodes to the list. When I call my printAll function, it only displays one node, so I know that is where the error is coming from. I've drawn a diagram of how it is moving and I'm at a loss as to what the problem is. I have posted my code below.
After the first call to addOfficial(), head will point to, say, official1. When official1 was created its next points to NULL, so head->next == NULL.
This makes tptr->next be always false