insque(3)
NAME
insque, remque − insert/remove element from a queue
SYNTAX
struct qelem {
structqelem *q_forw;
structqelem *q_back;
charq_data[];
};
insque(elem, pred)
struct qelem *elem, *pred;
remque(elem)
struct qelem *elem;
DESCRIPTION
The insque and remque subroutines manipulate queues built from doubly linked lists. Each element in the queue must in the form of “struct qelem.” The insque subroutine inserts elem in a queue immediately after pred.
The remque subroutine removes an entry elem from a queue.