Author: Unknown
Subject: unsuccessful remD()
Date: Saturday, 21 Mar 2020, 04:30:21
I am writing some code to remove items from Deque in order to add it onto another. However, I encounter errors where I am unable to successfully remD(), even though I clearly write code that checks whether that Deque is empty or not before calling on remD(). A simplified version of the code looks like this: Deque *d; while(!isEmptyD(d)){ char *a = NULL; if(!remD(d, &a)){ printf("error"); } ... } Could you tell me why I could be getting errors in remD(), even though the Deque is clearly not empty? What other reasons could be causing me to fail remD()?PREV INDEX NEXT