INSQUE(3,L) AIX Technical Reference INSQUE(3,L)
-------------------------------------------------------------------------------
insque, remque
PURPOSE
Inserts or removes an element in a queue.
LIBRARY
Standard C Library (libc.a)
SYNTAX
struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data [ ];
};
int insque (elem, pred)
struct qelem *elem, *pred;
int remque (elem)
struct qelem *elem;
DESCRIPTION
The insque and remque subroutines manipulate queues built from doubly linked
lists. Each element in the queue must be in the form of a qelem structure.
The q_forw and q_back elements of that structure must point to the elements in
the queue immediately before and after the element to be inserted or deleted.
The insque subroutine inserts the element pointed to by the elem parameter into
a queue immediately after the element pointed to by the pred parameter.
The remque subroutine removes the element defined by the elem parameter from a
queue.
Processed November 7, 1990 INSQUE(3,L) 1