-
Notifications
You must be signed in to change notification settings - Fork 0
/
putnbr.c
25 lines (22 loc) · 1.02 KB
/
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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* putnbr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: malema <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/12 19:00:59 by malema #+# #+# */
/* Updated: 2023/01/13 14:14:00 by malema ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printnum(int n)
{
char *str;
int c;
c = 0;
str = ft_itoa(n);
c = ft_putstr_fd(str);
free(str);
return (c);
}