-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
42 lines (39 loc) · 1.72 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
36
37
38
39
40
41
42
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: supersko <ndionis@student.42mulhouse.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/02 18:03:26 by supersko #+# #+# */
/* Updated: 2024/11/03 20:09:17 by nidionis ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# ifndef MAX_FD
# define MAX_FD 256
# endif
# include <stdlib.h>
# include <unistd.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <stdio.h>
void format_buff(char *buff, char *next_line);
void *ft_bzero(void *s, size_t n);
void *ft_calloc(size_t count, size_t size);
void append_line(char *buff, char **next_line);
char *line_from_buff(char *buff);
char *load_until_line(int fd, char **buff);
char *get_next_line(int fd);
char *ft_strdup(const char *s1);
size_t ft_strlen(const char *str);
size_t ft_strlcpy(char *dst, const char *src, size_t dstsize);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_strchr(const char *str, int c);
char *ft_strjoin(char *s1, char *s2);
void get_next_line_tester(int argc, char **argv);
#endif