Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ insque(SLIB) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 insque(SLIB)                   6 January 1993                   insque(SLIB)


 Name

    insque, remque - insert/remove element from a queue

 Syntax


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

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

    remque(elem)
    struct qelem *elem;


 Description

    insque and remque manipulate queues built from doubly linked lists.  Each
    element in the queue must in the form of ``struct qelem''.  insque
    inserts elem in a queue immediately after pred; remque removes an entry
    elem from a queue.


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