Inserts or removes an element in a queue.
Standard C Library (libc.a)
#include <search.h>
remque (Element) void *Element;
The insque and remque subroutines manipulate queues built from double-linked lists. Each element in the queue must be in the form of a qelem structure. The next and prev elements of that structure must point to the elements in the queue immediately before and after the element to be inserted or deleted.
The insque subroutine inserts the element pointed to by the Element parameter into a queue immediately after the element pointed to by the Pred parameter.
The remque subroutine removes the element defined by the Element parameter from a queue.
Pred | Points to the element in the queue immediately before the element to be inserted or deleted. |
Element | Points to the element in the queue immediately after the element to be inserted or deleted. |
Searching and Sorting Example Program in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Subroutines Overview in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.