-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr_fd.c
48 lines (43 loc) · 1.47 KB
/
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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zakchouc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/29 18:44:01 by zakchouc #+# #+# */
/* Updated: 2024/12/02 22:43:06 by zakchouc ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @file ft_putstr_fd.c
* @author Ziyad A. Dev ([email protected])
* @brief Outputs the string ’s’ to the given file descriptor.
* Allowed function(s) write
* @param s The string to output.
* @param fd The file descriptor on which to write.
*
* @return None
* @version 0.1
* @date 2023-11-29
*
* @copyright Copyright (c) 2023
*
*/
#include "libft.h"
void ft_putstr_fd(char *s, int fd)
{
int i;
i = 0;
while (s[i])
{
ft_putchar_fd(s[i], fd);
i++;
}
}
// // #include "ft_putchar_fd.c"
// int main(void)
// {
// ft_putstr_fd("salut, test", 1);
// return (0);
// }