34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_tablen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: nlauvray <nlauvray@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/31 08:45:13 by nlauvray #+# #+# */
|
|
/* Updated: 2022/07/31 21:17:39 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "rush02.h"
|
|
|
|
int ft_tablen(t_number *tab)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
while (tab[i].nbr[0] != 0)
|
|
i++;
|
|
return (i);
|
|
}
|
|
|
|
int ft_lines_counter(char **strs)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
while (strs[i][0] != 0)
|
|
i++;
|
|
return (i);
|
|
}
|