Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsinsque(3C)


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

 

The insque() and remque() functions 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[];
};

The insque() function inserts elem in a queue immediately after pred. The remque() function removes an entry elem from a queue.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelUnsafe

SEE ALSO

 

attributes(5)


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.