Files
42-GNL/get_next_line.h
2025-11-23 19:16:33 +01:00

31 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/21 17:22:03 by dgaillet #+# #+# */
/* Updated: 2025/11/23 16:43:49 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# include <stdlib.h>
char *get_next_line(int fd);
int index_of_nl(char *str, int limit);
char *ft_strjoin_new(char const *s1, char const *s2, size_t limit);
size_t ft_strlen(const char *s);
char *ft_substr(char const *s, unsigned int start, size_t len);
void *ft_calloc(size_t nmemb, size_t size);
#endif