| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
INSQUESection: Linux Programmer's Manual (3)Updated: October 30, 2025 Index NAMEinsque, remque - insert/remove an item from a queueSYNOPSIS#include <stdlib.h> void insque(struct qelem *elem, struct qelem *prev); void remque(struct qelem *elem); DESCRIPTIONinsque() and remque() are functions for manipulating queues made from doubly-linked lists. Each element in this list is of type struct qelemThe qelem structure is defined as
insque() inserts the element pointed to by elem immediately after the element pointed to by prev, which must NOT be NULL. remque() removes the element pointed to by elem from the doubly-linked list. CONFORMING TOSVR4BUGSThe q_data field is sometimes defined to be type char *, and under solaris 2.x, it doesn't appear to exist at all.The location of the prototypes for these functions differ among several versions of UNIX. Some systems place them in <search.h>, others in <string.h>. Linux places them in <stdlib.h> since that seems to make the most sense. Some versions of UNIX (like HP-UX 10.x) do not define a struct qelem but rather have the arguments to insque() and remque() be of type void *.
IndexThis document was created by using the manual pages. Time: 11:58:04 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |