|INSQUE(3)||FreeBSD Library Functions Manual||INSQUE(3)|
NAMEinsque, remque — doubly-linked list management
LIBRARYStandard C Library (libc, -lc)
SYNOPSIS#include < search.h>
insque( void *element1, void *pred);
remque( void *element);
DESCRIPTIONThe insque() and remque() functions encapsulate the ever-repeating task of doing insertion and removal operations on doubly linked lists. The functions expect their arguments to point to a structure whose first and second members are pointers to the next and previous element, respectively. The insque() function also allows the pred argument to be a NULL pointer for the initialization of a new list's head element.
STANDARDSThe insque() and remque() functions conform to IEEE Std 1003.1-2001 (“POSIX.1”).
HISTORYThe insque() and remque() functions appeared in 4.2BSD. In FreeBSD 5.0, they reappeared conforming to IEEE Std 1003.1-2001 (“POSIX.1”).
|October 10, 2002||FreeBSD|