INSQUE(3) UNIX Programmer’s Manual INSQUE(3)
NAME
insque, remque - insert/remove element from a queue
SYNOPSIS
struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data[];
};
insque((caddr_t) struct qelem *elem, (caddr_t) struct qelem *pred)
remque((caddr_t) struct qelem *elem)
DESCRIPTION
The insque() and remque() functions manipulate queues built
from doubly
linked lists. Each element in the queue must be in the form
of ‘‘struct
qelem’’. The function insque() inserts elem in a
queue immediately after
pred; remque() removes an entry elem from a queue.
SEE ALSO
VAX Architecture Handbook, pp. 228-235.
HISTORY
The insque() and remque() functions appeared in 4.2BSD.
4.2 Berkeley Distribution December 11, 1993 1