get_next_line/get_next_line.h
Khaïs COLIN 607a121ced got big reimplement
i am le tired
2024-11-06 17:57:34 +01:00

33 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/23 20:23:21 by kcolin #+# #+# */
/* Updated: 2024/11/06 16:51:35 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1024
# endif
# if BUFFER_SIZE <= 0
# error BUFFER_SIZE must be at least 1
# endif
size_t ft_strlen(const char *s);
char *ft_strjoin(char *s1, char *s2);
char *ft_strchr(const char *s, int c);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *get_next_line(int fd);
#endif