tgrekov-get_next_line
HIVE gnl Nov 2023
Loading...
Searching...
No Matches
get_next_line_bonus.h
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* get_next_line_bonus.h :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/10/28 02:23:52 by tgrekov #+# #+# */
9
/* Updated: 2023/12/12 07:48:47 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#ifndef GET_NEXT_LINE_BONUS_H
21
# define GET_NEXT_LINE_BONUS_H
22
26
# ifndef BUFFER_SIZE
27
# define BUFFER_SIZE 1024
28
# endif
29
33
# ifndef MAX_FD
34
# define MAX_FD 1024
35
# endif
36
37
# include "stdlib.h"
38
# include "unistd.h"
39
40
char
*
get_next_line
(
int
fd);
41
char
*ft_strdup(
const
char
*s1);
42
char
*ft_strjoin(
char
const
*s1,
char
const
*s2);
43
void
*ft_memcpy(
void
*dst,
const
void
*src,
size_t
n);
44
size_t
ft_strlen(
const
char
*str);
45
46
#endif
get_next_line
char * get_next_line(int fd)
Return the next segment of text ending in a newline or EOF from file descriptor fd.
Definition
get_next_line.c:131
get_next_line_bonus.h