-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint_decimal.c
25 lines (22 loc) · 1.03 KB
/
print_decimal.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* printdecimal.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: alouzizi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/23 20:12:00 by alouzizi #+# #+# */
/* Updated: 2021/11/23 20:55:49 by alouzizi ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int printdecimal(int nb)
{
char *nbr;
int len;
nbr = ft_itoa(nb);
ft_putstr(nbr);
len = ft_strlen(nbr);
free (nbr);
return (len);
}