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

Go to the source code of this file.

Functions

void * max_pq_peek (const t_max_pq *pq)
 Returns the largest key in the queue. More...
 

Function Documentation

◆ max_pq_peek()

void* max_pq_peek ( const t_max_pq pq)

Returns the largest key in the queue.

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

Definition at line 16 of file max_pq_peek.c.