This commit is contained in:
H3XploR
2025-02-17 22:09:31 +01:00
parent 557de2b0a7
commit e36cfb5fde
27 changed files with 912 additions and 953 deletions
+36
View File
@@ -0,0 +1,36 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_arraylen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/17 21:10:10 by yantoine #+# #+# */
/* Updated: 2025/02/17 21:21:30 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
#include "miniRT.h"
int ft_arraylen(char **array)
{
int i;
i = 0;
while (array[i])
i++;
return (i);
}
void ft_free_array(char **array)
{
int i;
i = 0;
while (array[i])
{
free(array[i]);
i++;
}
free(array);
}