-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putnbr_fd.c
executable file
·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: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/25 17:08:02 by tseguier #+# #+# */
/* Updated: 2014/07/02 15:31:58 by tseguier ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putnbr_fd(int n, int fd)
{
char *nbstr;
if (fd < 0)
return ;
nbstr = ft_itoa(n);
if (!nbstr)
return ;
ft_putstr_fd(nbstr, fd);
ft_strdel(&nbstr);
}