-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
35 lines (30 loc) · 1.41 KB
/
get_next_line.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
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vquiroga <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/06/03 14:40:12 by vquiroga #+# #+# */
/* Updated: 2023/06/03 15:06:20 by vquiroga ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <stddef.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 32
# endif
void ft_bzero(void *s, size_t len);
size_t ft_strlen(const char *s);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_join_and_free(char *buffer, char *buf);
void *ft_calloc(size_t count, size_t size);
int ft_containsnewline(const char *buff);
char *ft_next(char *buffer);
char *ft_line(char *buffer);
char *read_file(int fd, char *res);
char *get_next_line(int fd);
#endif