Amiga Unix — 68040 · 68060

Manual pages › C library (3C)

insque(3C)

insert/remove element from a queue

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

insque, remque - insert/remove element from a queue

SYNOPSIS

include <search.h>

void insque(struct qelem *elem, struct qelem *pred);

void remque(struct qelem *elem);

DESCRIPTION

insque and remque manipulate queues built from doubly linked lists. Each element in the queue must be in the following form:

struct qelem {
     struct    qelem *q_forw;
     struct    qelem *q_back;
     char q_data[];
};

insque inserts elem in a queue immediately after pred. remque removes an entry elem from a queue.