queue_next_element()

Move to the next element following the specified one.

Synopsis:

#include <hnm/queue.h>
 
void* queue_next_element(void *element)

Arguments:

element

A pointer to an element structure that represents the queue element that is currently being visited.

Library:

libhnm

Description:

The queue_next_element() function can be used to iterate over queued elements from the head toward the tail.

Returns:

A pointer to the containing structure of the next element or NULL if no such element exists.