maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_free_2d_arr.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_free_2d_arr.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: rmikhayl <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/09/09 19:37:13 by rmikhayl #+# #+# */
9/* Updated: 2024/09/09 19:37:16 by rmikhayl ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15void ft_free_2d_arr(char **arr)
16{
17 int i;
18
19 if (!arr)
20 return ;
21 i = -1;
22 while (arr[++i] != NULL)
23 free(arr[i]);
24 free(arr);
25}
void ft_free_2d_arr(char **arr)