data_structures
Functions
queue_peek.c File Reference
#include "queue.h"
+ Include dependency graph for queue_peek.c:

Go to the source code of this file.

Functions

void * queue_peek (const t_queue *queue)
 Returns the item in this queue that was least recently added. More...
 

Function Documentation

◆ queue_peek()

void* queue_peek ( const t_queue queue)

Returns the item in this queue that was least recently added.

The item is kepts on the queue.

Returns
The item that was least recently added, or NULL if the queue is empty.

Definition at line 16 of file queue_peek.c.