-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstream.h
29 lines (25 loc) · 1.31 KB
/
stream.h
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* stream.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scambier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 16:42:04 by scambier #+# #+# */
/* Updated: 2024/05/28 17:40:45 by scambier ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STREAM_H
# define STREAM_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 64
# endif
int ft_putchar_fd(char c, int fd);
int ft_putstr_fd(char *s, int fd);
int ft_putnbr_fd(int n, int fd);
int ft_putnbr_base_fd(long nbr, char *base, int fd);
int ft_get_file(char **dst, char *path, unsigned int buffer_size);
char *get_next_line(int fd);
void ft_bindump(char *ptr, int len, int bpl);
void ft_hexdump(char *ptr, int len, int bpl);
#endif