-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_purge2str_bonus.c
24 lines (21 loc) · 1.02 KB
/
ft_purge2str_bonus.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_purge2str_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: youkim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/09 20:40:36 by youkim #+# #+# */
/* Updated: 2021/05/10 20:55:51 by youkim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char **ft_purge2str_bonus(char **str2d)
{
size_t i;
i = 0;
while (str2d[i])
free(str2d[i++]);
free(str2d);
return (0);
}