-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_io.c
37 lines (30 loc) · 1.17 KB
/
ft_io.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
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_io.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgillot- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/19 01:30:50 by lgillot- #+# #+# */
/* Updated: 2015/11/19 01:35:27 by lgillot- ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <ft_str.h>
#include <ft_io.h>
void ft_putchar_fd(char c, int fd)
{
ft_fwrite(fd, &c, 1);
}
void ft_putchar(char c)
{
ft_putchar_fd(c, 1);
}
void ft_putstr_fd(char const *s, int fd)
{
ft_fwrite(fd, s, ft_strlen(s));
}
void ft_putstr(char const *s)
{
ft_putstr_fd(s, 1);
}