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)
Reputation Points: 874
Solved Threads: 352
Posting Maven
Offline 2,758 posts
since Sep 2008