removeelement(3C)
_________________________________________________________________
removeelement function
Delete an element from a queue.
_________________________________________________________________
Calling Sequence
#include <queue.h>
struct queue que;
struct element *ptr, removeelement();
ptr = removeelement(&que, ptr);
Description
The remove_element function removes a specified element in a
doubly-linked list. Define the element in your program. The
first two double words of the element are reserved to hold
forward and backward pointers. For example:
struct element2 {
int *forwardptr;
int *backwardptr;
char item;
} *ptr;
The pointer that you pass to the remove_element function is the
pointer to the element that you define and declare in the
program.
The remove_element function uses the hardware representation for
queues. For more details, consult The ECLIPSE 32-Bit Systems
Principles of Operation.
Returns
The remove_element function returns a pointer to the element.
Related Functions
See also the remove_head and remove_tail functions.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)