/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_get_map_dims.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:47 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:28:47 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include 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); }