-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putendl_fd.c
More file actions
26 lines (23 loc) · 1.04 KB
/
Copy pathft_putendl_fd.c
File metadata and controls
26 lines (23 loc) · 1.04 KB
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_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fclaus-g <fclaus-g@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/26 17:52:45 by fclaus-g #+# #+# */
/* Updated: 2022/10/26 17:58:17 by fclaus-g ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
int count;
count = 0;
while (s[count])
{
write (fd, &s[count], 1);
count++;
}
write (fd, "\n", 1);
}