rlist_remove3
Remove an entry from an rlist
Usage
#include <roy.h>
void rlist_remove (RList * list, RListEntry * entry);
Overview
Remove/unlink entry from list. The rlist_remove(3) api is implmented using a macro so using the RListEntry * as the entry is only advisorial. See rlist(3) on how to create RListEntry compatible entry structs.
This call does NOT free the entry's memory or call any destructors. See rlist_free(3) to see how to free the entire list. =item EXAMPLE
The correct way to fully free entry.
rlist_remove (entry);rmem_free (entry); /* My entry destructor. */
Return value
This call doesn't return any value.
Errors
A call to rlist_remove(3) will never fail.
Macro
The rlist_remove(3) api is implemented using a macro.
Releases
2 releases since Debian 3.0 (Woody); the text changed 1 time.