42_push_swap/ft_tablen.c
2022-12-01 17:15:17 +01:00

24 lines
1019 B
C

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