/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_get_map_dims.c                                  :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/14 17:28:47 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/14 17:28:47 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#include <libft.h>
#include <stdint.h>

size_t
	ft_get_map_h(char **map)
{
	size_t	i;

	i = 0;
	while (map[i])
		i++;
	return (i);
}

size_t
	ft_get_map_w(char **map)
{
	size_t	i;
	size_t	big;
	size_t	tmp;

	i = 0;
	big = 0;
	tmp = 0;
	while (map[i])
	{
		tmp = ft_strlen(map[i]);
		if (tmp > big)
			big = tmp;
		i++;
	}
	return (big);
}