-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putnbr.c
25 lines (22 loc) · 1.02 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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnbr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: luis-ffe <luis-ffe@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/12 10:56:20 by luis-ffe #+# #+# */
/* Updated: 2023/10/12 12:25:43 by luis-ffe ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putnbr_fd(int n, int fd)
{
char *s;
int x;
x = 0;
s = ft_itoa(n);
x = ft_putstr_fd(s, fd);
free(s);
return (x);
}