-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_putchar_fd.c
28 lines (25 loc) · 1.24 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
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/27 20:38:08 by apuchill #+# #+# */
/* Updated: 2020/02/19 14:57:25 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <stdio.h>
** SYNOPSIS: output a character to given file
**
** DESCRIPTION:
** The fputc() function writes the character c (converted to an ``unsigned
** char'') to the output stream pointed to by stream.
** [42 PDF] Outputs the character ’c’ to the given file descriptor.
*/
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}