-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
23 lines (21 loc) · 1 KB
/
Copy pathft_putstr_fd.c
File metadata and controls
23 lines (21 loc) · 1 KB
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: srosu <srosu@student.42belgium.be> #+# +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/07 15:53:46 by srosu #+# #+# */
/* Updated: 2026/04/16 15:19:18 by srosu ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putstr_fd(char *s, int fd, int *count)
{
while (*s)
{
write(fd, s, 1);
++(*count);
s++;
}
}