mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-14 00:08:47 +02:00
「✨」 feat(Prompt): prompt working
This commit is contained in:
26
libft/mem/ft_freetab.c
Normal file
26
libft/mem/ft_freetab.c
Normal file
@ -0,0 +1,26 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_freetab.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/27 15:33:20 by adjoly #+# #+# */
|
||||
/* Updated: 2024/04/27 17:20:24 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
void ft_freearr(void **arr)
|
||||
{
|
||||
void **tmp;
|
||||
|
||||
tmp = arr;
|
||||
while (*tmp)
|
||||
{
|
||||
free(*tmp);
|
||||
tmp++;
|
||||
}
|
||||
free(arr);
|
||||
}
|
Reference in New Issue
Block a user