Contents
Description
The function shows the first element of the queue, but does not remove it from the queue.
Function signature
char *peek(Queue *queue);
Params
-
queue - pointer to the queue, in which you want to peek the element.
Return value
The function returns a copy to the first element. If queue is empty it returns NULL.