|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sfllist.h"
void *
list_unlink (
void *list)
Unlinks the list from any list it may be in. Returns list.
{
list_unsafe = TRUE;
/* Join together next and previous nodes */
((LIST *) ((LIST *) list)-> prev)-> next = ((LIST *) list)-> next;
((LIST *) ((LIST *) list)-> next)-> prev = ((LIST *) list)-> prev;
/* The list is now empty */
list_reset ((LIST *) list);
list_unsafe = FALSE;
return (list);
}
| | << | < | > | >> |
|