42-archive/libft/src/math/ft_uilen.c
2016-09-25 02:29:37 +02:00

11 lines
113 B
C

#include "libft.h"
size_t ft_uilen(unsigned int n)
{
size_t i;
i = 1;
while (n /= 10)
i++;
return (i);
}