-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putnbr.c
24 lines (21 loc) · 1.01 KB
/
ft_putnbr.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnbr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ttavares <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/05 12:37:17 by ttavares #+# #+# */
/* Updated: 2022/12/05 16:50:20 by ttavares ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putnbr(int n)
{
char *str;
int len;
str = ft_itoa(n);
len = ft_putstr(str);
free(str);
return (len);
}