unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.4BSD-Lite2)
Page:
Section:
Apropos / Subsearch:
optional field

INSQUE(3)                   BSD 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