24 lines
1,021 B
C
24 lines
1,021 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* free.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/12/09 15:50:52 by erey-bet #+# #+# */
|
|
/* Updated: 2022/12/09 15:51:10 by erey-bet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "push_swap.h"
|
|
|
|
void free_strstr(char **tmp)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
while (tmp[i] != NULL)
|
|
free (tmp[i++]);
|
|
free(tmp);
|
|
}
|