-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_qclear.c
More file actions
21 lines (19 loc) · 1.03 KB
/
Copy pathft_qclear.c
File metadata and controls
21 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_qclear.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mnishimo <mnishimo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/16 16:07:21 by mnishimo #+# #+# */
/* Updated: 2019/05/15 23:01:39 by mnishimo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
void ft_qclear(t_queue **q, void (*del)(void *, size_t))
{
if (!q || !(*q))
return ;
ft_lstdel(&((*q)->top), del);
(*q)->last = NULL;
}