what's the error message saying?
btw, your structure is for resNode
and not ResNode
Last edited on
Maybe you should check the return value of malloc, which can return NULL, before dereferencing newNode?
If that's not the culprit, you've likely trashed some memory you shouldn't have somewhere else in the code.
So I checked that, and its really returning NULL, its possible to fix?
thank you so far
Last edited on