-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
26 lines (23 loc) · 1.06 KB
/
ft_putstr_fd.c
File metadata and controls
26 lines (23 loc) · 1.06 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_putstr_fd.c :+: :+: */
/* +:+ */
/* By: farodrig <farodrig@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/12/12 16:30:01 by farodrig #+# #+# */
/* Updated: 2020/12/12 16:34:25 by farodrig ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Outputs the string 's' to the given filedescriptor.
*/
void ft_putstr_fd(char *str, int fd)
{
while (str && *str != 0)
{
ft_putchar_fd(*str, fd);
str++;
}
}