Name
clist_rem_next
Synopsis
int clist_rem_next(CList *list
, CListElmt *element
, void **data
);
Return Value
0 if removing the element is successful, or -1 otherwise.
Description
Removes the element just after
element
from the circular list
specified by list
. Upon return,
data
points to the data stored in the
element that was removed. It is the responsibility of the caller
to manage the storage associated with the data.
Complexity
O (1)
Get Mastering Algorithms with C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.