-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_fd.c
27 lines (24 loc) · 1.11 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
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lsauvage <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/24 12:08:35 by lsauvage #+# #+# */
/* Updated: 2017/11/24 12:20:26 by lsauvage ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** DESCRIPTION : Ecrit le caractere c sur le descripteur de fichier fd.
**
** PARAM #1 : Le caractere a ecrire
** PARAM #2 : Le file descriptor
**
** RETOUR : rien
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}