/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lllen_base.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/07 13:52:35 by jhalford #+# #+# */ /* Updated: 2016/11/07 14:46:15 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" size_t ft_lllen_base(long long n, int base) { size_t i; i = 1; while (n /= base) i++; return (i); }