42_push_swap/ft_tablen.c
Camille Chauvet bb6e9ddd85 d
2022-11-23 21:44:27 +01:00

24 lines
1002 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tablen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/23 16:15:15 by cchauvet #+# #+# */
/* Updated: 2022/11/23 16:23:26 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "pushswap.h"
int ft_tablen(int *tab)
{
int i;
i = 0;
while (tab[i] != -1)
i++;
return (i);
}