-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathft_putstr_fd.c
21 lines (18 loc) · 1018 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aalvarez <aalvarez@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/26 00:13:50 by aalvarez #+# #+# */
/* Updated: 2024/06/26 00:14:20 by aalvarez ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
void ft_putstr_fd(char *s, int fd)
{
if (s != NULL)
write(fd, s, ft_strlen(s));
}