-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putnbr_fd.c
26 lines (23 loc) · 1.05 KB
/
ft_putnbr_fd.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
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnbr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: javellis <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/12 18:13:53 by javellis #+# #+# */
/* Updated: 2022/10/12 18:13:56 by javellis ### ########.fr */
/* */
/* ************************************************************************** */
#include<unistd.h>
#include"libft.h"
void ft_putnbr_fd(int n, int fd)
{
char *nbr;
nbr = ft_itoa(n);
while (*nbr)
{
write(fd, &(*nbr), 1);
nbr++;
}
}