insque()

NAME

insque, remque - insert/remove element from a queue

LIBRARY

Compatibility Library (libcompat, -lcompat)

SYNOPSIS

#include <search.h>

struct qelem {
	 struct qelem *q_forw;
	 struct qelem *q_back;
	 char q_data[];
};
void
insque(struct qelem *elem, struct qelem *pred);

void
remque(struct qelem *elem);

DESCRIPTION

The insque(3) and remque(3) functions manipulate queues built from doubly linked lists. Each element in the queue must begin with a struct qelem. The function insque(3) inserts elem in a queue immediately after pred; remque(3) removes an entry elem from a queue.

SEE ALSO

VAX Architecture Handbook

HISTORY

The insque(3) and remque(3) functions appeared in 4.2BSD.