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

Go to the source code of this file.

Functions

void * min_pq_peek (const t_min_pq *pq)
 Returns the smallest key in the queue. More...
 

Function Documentation

◆ min_pq_peek()

void* min_pq_peek ( const t_min_pq pq)

Returns the smallest key in the queue.

Returns
The smallest key or NULL if the queue is empty.

Definition at line 16 of file min_pq_peek.c.