data_structures
queue_peek.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* queue_peek.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/17 01:31:52 by unite #+# #+# */
10 /* Updated: 2020/07/18 16:37:17 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "queue.h"
15 
16 void *queue_peek(const t_queue *queue)
17 {
18  return (list_peek_first(queue));
19 }
list_peek_first
void * list_peek_first(const t_list *alst)
Returns the first item in the list.
Definition: list_peek_first.c:16
s_list
Doubly-linked list of generic items.
Definition: list.h:54
queue.h
queue_peek
void * queue_peek(const t_queue *queue)
Returns the item in this queue that was least recently added.
Definition: queue_peek.c:16