-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putchar_fd.c
More file actions
27 lines (24 loc) · 1.22 KB
/
ft_putchar_fd.c
File metadata and controls
27 lines (24 loc) · 1.22 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
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccarnot <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/10 11:35:49 by ccarnot #+# #+# */
/* Updated: 2023/05/10 12:21:12 by ccarnot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*******************************************
* Function: ft_putchar_fd
* Description: outputs the character ’c’ to the given file descriptor
* Memory allocations: None
* Crash values:
* - fd is not valid
* Return value: None
*******************************************/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}