-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putchar_fd.c
More file actions
23 lines (21 loc) · 1.08 KB
/
Copy pathft_putchar_fd.c
File metadata and controls
23 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acouture <acouture@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/13 09:53:15 by acouture #+# #+# */
/* Updated: 2023/04/23 13:16:22 by acouture ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Writes a character to a given file descritor
* @param c Character to be written
* @param fd The file descriptor
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}