diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef433d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.pdf +*.o +*.a +LICENSE +obj +tests/tmp +.git +.ccls-cache diff --git a/tests/tmp/get_next_line.h b/tests/tmp/get_next_line.h new file mode 100644 index 0000000..cd06ba6 --- /dev/null +++ b/tests/tmp/get_next_line.h @@ -0,0 +1,42 @@ +/* ************************************************************************** */ +/* */ +/* :::::::: */ +/* get_next_line.h |o_o || | */ +/* +:+ */ +/* By: djonker +#+ */ +/* +#+ */ +/* Created: 2020/12/19 06:09:11 by djonker #+# #+# */ +/* Updated: 2021/05/27 03:41:54 by djonker \___)=(___/ */ +/* */ +/* ************************************************************************** */ + +#ifndef GET_NEXT_LINE_H +# define GET_NEXT_LINE_H + +# include "get_next_line.h" +# include +# include +# include + +# ifndef BUFFER_SIZE +# define BUFFER_SIZE 300 +# endif + +struct s_gnl +{ + char b[BUFFER_SIZE + 1]; + int fd; +}; + +int get_next_line(int fd, char **line); +int findnewline(struct s_gnl *strct); +int newline(struct s_gnl *strct, char **line); +int blimit(int l, struct s_gnl *strct, char **line, char *t);; +int nonewline(int l, struct s_gnl *strct, char **line); +char *ft_substr(char const *s, unsigned int start, size_t len); +void *ft_memcpy(void *dst, const void *src, size_t n); +size_t ft_strlen(char *str); +void ft_bzero(void *s, size_t n); +char *ft_strjoin(char const *s1, char const *s2); + +#endif diff --git a/tests/tmp/norm b/tests/tmp/norm new file mode 100644 index 0000000..acb6854 --- /dev/null +++ b/tests/tmp/norm @@ -0,0 +1,3 @@ +./src/get_next_line_utils.c: OK! +./src/get_next_line.c: OK! +./get_next_line.h: OK! diff --git a/tests/tmp/relink b/tests/tmp/relink new file mode 100644 index 0000000..e69de29