-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_qnew.c
More file actions
26 lines (23 loc) · 1.04 KB
/
Copy pathft_qnew.c
File metadata and controls
26 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_qnew.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mnishimo <mnishimo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/14 22:20:59 by mnishimo #+# #+# */
/* Updated: 2019/05/03 15:18:58 by mnishimo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
t_queue *ft_qnew(void)
{
t_queue *q;
q = (t_queue *)malloc(sizeof(t_queue));
if (q)
{
q->top = NULL;
q->last = NULL;
}
return (q);
}