24 lines
1002 B
C
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);
|
|
}
|