-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr_fd.c
22 lines (20 loc) · 1.18 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/09 13:41:59 by lgasc #+# #+# */
/* Updated: 2024/02/13 14:24:32 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
///Outputs the `string` to the given `file_descriptor`.
///@param[in] string What to put
///@param[in] file_descriptor Where to write
///@remarks External function: `write`
void ft_putstr_fd(const char *const string, const int file_descriptor)
{
write(file_descriptor, string, ft_strlen(string));
}