-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr_fd.c
23 lines (20 loc) · 1007 Bytes
/
ft_putstr_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: polmarti <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/28 10:39:39 by polmarti #+# #+# */
/* Updated: 2023/09/28 10:39:41 by polmarti ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_fd(char *s, int fd)
{
int i;
i = 0;
while (s[i])
i++;
write(fd, s, i);
}