-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putchar_fd.c
27 lines (23 loc) · 1.08 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: bnidia <bnidia@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/17 14:38:05 by bnidia #+# #+# */
/* Updated: 2021/10/29 02:39:37 by bnidia ### ########.fr */
/* */
/* ************************************************************************** */
/* ft_putchar_fd
** Outputs the character 'c' to the given file descriptor
**
*/
#include "libft.h"
void ft_putchar_fd(char c, int fd)
{
ssize_t err;
err = write(fd, &c, 1);
if (err == -1)
return ;
}