Hi all,
There may be an issue in blow function when deleted the node is the first one, that mean n->prev is NULL….., similarly, same issue as the last one node is deleted.
LIST_INLINE void
rem_node(node *n)
{
node *z = n->prev;
node *x = n->next;
z->next = x;
x->prev = z;
n->next = NULL;
n->prev = NULL;
}
Thanks
Arvin