-
Notifications
You must be signed in to change notification settings - Fork 2
/
ft_putchar_fd.c
23 lines (20 loc) · 1.05 KB
/
ft_putchar_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adiaz-lo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/13 11:55:06 by adiaz-lo #+# #+# */
/* Updated: 2020/01/13 11:56:59 by adiaz-lo ### ########.fr */
/* */
/* ************************************************************************** */
/*
** This function outputs the 'c' character to the file descriptor 'fd' given by
** parameter.
*/
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}