Wait until someone verifies this advice, but back in the day, I did a doubly linked list program. I made the delete function somewhat like you did, and my program didn't work correctly. I think it should be declared as
char delete ( ListNodePtr **sPtr, ListNodePtr **tailPtr, char value )
Anyone... verify or contradict that suggestion?
(Don't take this advice until someone experienced elaborates)
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354