ft_tabsize.c 1009 B

1234567891011121314151617181920212223
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_tabsize.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2015/04/18 16:52:16 by mazimi #+# #+# */
  9. /* Updated: 2015/04/28 15:31:59 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. int ft_tabsize(char **tab)
  14. {
  15. int i;
  16. i = 0;
  17. while (tab[i] != NULL)
  18. i++;
  19. return (i);
  20. }