blob: e1a253634c4ff7bb0eb6ec201f1e5b2a08276b8e (
plain)
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
38
39
40
41
42
43
44
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_io.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/31 10:35:43 by cacharle #+# #+# */
/* Updated: 2020/01/31 10:35:48 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBFT_IO_H
# define LIBFT_IO_H
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
# include "libft.h"
void ft_putendl(char *s);
void ft_putchar(char c);
void ft_putstr(char const *s);
void ft_putnbr(int n);
void ft_putchar_fd(char c, int fd);
void ft_putstr_fd(char *s, int fd);
void ft_putendl_fd(char *s, int fd);
void ft_putnbr_fd(int n, int fd);
# ifndef FTNL_BUFFER_SIZE
# define FTNL_BUFFER_SIZE 32
# endif
# define FTNL_STATUS_LINE 1
# define FTNL_STATUS_EOF 0
# define FTNL_STATUS_ERROR -1
/*
** get_next_line.c
*/
int ft_next_line(int fd, char **line);
#endif
|