-
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 (24 loc) · 1.16 KB
/
ft_putstr_fd.c
File metadata and controls
26 lines (24 loc) · 1.16 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: jowagner <jowagner@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/29 17:26:49 by jowagner #+# #+# */
/* Updated: 2024/12/12 19:49:42 by jowagner ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Writes a string to a given file descriptor.
*
* @param s The string to be written.
* @param fd The file descriptor to write to (1 for standard output,
* 2 for standard error, etc.).
*/
void ft_putstr_fd(char *s, int fd)
{
while (*s)
write(fd, s++, 1);
}