Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026