Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::UnlinkThing Macro
C++
#define UnlinkThing( node ) \
    ((( (node) && (node)->me && ( (*(node)->me)=(node)->next ) )?  \
    (node)->next->me = (node)->me:0),((node)->next = NULL),((node)->me = NULL),(node))

Remove a node from a list. Requires only the node.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!