-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
22 lines (20 loc) · 996 Bytes
/
ft_putstr_fd.c
File metadata and controls
22 lines (20 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oishchen <oishchen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/21 23:58:35 by oishchen #+# #+# */
/* Updated: 2025/03/22 00:07:37 by oishchen ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr_fd(char *s, int fd)
{
while (*s)
{
write(fd, s, 1);
s++;
}
}