3 ms·
This is one of the purposes of doubly-linking the nodes. Say your struct is in two lists. To remove it from both, first follow the next/prev pointers of the fi
by jjnoakes 5y ago
This is one of the purposes of doubly-linking the nodes.
Say your struct is in two lists. To remove it from both, first follow the next/prev pointers of the first list embedded struct to remove it from the first list, and then do the same thing with the second list embedded struct to remove it from the second list.