aboutsummaryrefslogtreecommitdiff
path: root/lib/libft/get_next_line.h
blob: 5d3c6eed9f7b3ff08181462494544b075ff46e13 (plain)
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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   get_next_line.h                                    :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/03/15 14:14:07 by dkaiser           #+#    #+#             */
/*   Updated: 2024/06/24 16:44:01 by dkaiser          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>

# ifndef BUFFER_SIZE
#  define BUFFER_SIZE 42
# endif

int		ft_strlen(const char *str);
char	*get_next_line(int fd);
void	clear_buffer(char *buf, int start);
char	*str_add_buffer(char *old_str, char *buf, int buf_len);
#endif // GET_NEXT_LINE_H