insque(3C)

insque, remque - insert/remove element from a queue

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

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);

     #if _XOPEN_SOURCE
       void insque(void *, void *);

       void remque(void *);
     #endif

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.  If the argument
     pred is NULL, then the structure q_forw and q_back entries of the passed
     structure pointed to by the struct pointer elem will be set to zeroes.
     remque removes an entry elem from a queue.