25 lines
1,020 B
C
25 lines
1,020 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_str_table_len.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/11/05 17:25:40 by gtertysh #+# #+# */
|
|
/* Updated: 2017/11/05 17:25:42 by gtertysh ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
int ft_str_table_len(char **tab)
|
|
{
|
|
int len;
|
|
|
|
len = 0;
|
|
if (tab)
|
|
while (*tab)
|
|
{
|
|
tab++;
|
|
len++;
|
|
}
|
|
return (len);
|
|
}
|