get_next_line/get_next_line.h

34 lines
1.3 KiB
C
Raw Permalink Normal View History

2024-10-24 12:38:36 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/23 20:23:21 by kcolin #+# #+# */
2024-11-08 15:09:12 +01:00
/* Updated: 2024/11/08 14:58:43 by kcolin ### ########.fr */
2024-10-24 12:38:36 +02:00
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
2024-11-08 15:09:12 +01:00
# define BUFFER_SIZE 1023
2024-10-24 12:38:36 +02:00
# endif
2024-10-31 14:22:52 +01:00
# if BUFFER_SIZE <= 0
# error BUFFER_SIZE must be at least 1
2024-10-31 13:48:24 +01:00
# endif
2024-10-24 12:38:36 +02:00
2024-11-06 17:57:34 +01:00
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);
2024-10-24 12:38:36 +02:00
char *get_next_line(int fd);
#endif