-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
25 lines (22 loc) · 1020 Bytes
/
ft_putstr_fd.c
File metadata and controls
25 lines (22 loc) · 1020 Bytes
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_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bhielsch <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/13 17:46:42 by bhielsch #+# #+# */
/* Updated: 2022/10/13 17:46:53 by bhielsch ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr_fd(char *s, int fd)
{
int i;
i = 0;
while (s[i])
{
write (fd, &s[i], 1);
i++;
}
}