-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_int_len.c
More file actions
23 lines (20 loc) · 1014 Bytes
/
ft_int_len.c
File metadata and controls
23 lines (20 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_int_len.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vopolonc <vopolonc@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/17 14:22:54 by vopolonc #+# #+# */
/* Updated: 2018/11/17 14:23:17 by vopolonc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_int_len(int n)
{
size_t count;
count = 1;
while (n /= 10)
count++;
return (count);
}