Contents

Description

The function removes the first element from the queue and returns it.

Function signature

char *dequeue(Queue *queue);

Params

  • queue - a pointer to the queue from which the element will be removed

Return value

The function returns a pointer to the removed element. If queue is empty it returns NULL.