tgrekov-get_next_line
HIVE gnl Nov 2023
Loading...
Searching...
No Matches
get_next_line.h
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* get_next_line.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:59 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#ifndef GET_NEXT_LINE_H
21
# define GET_NEXT_LINE_H
22
27
# ifndef BUFFER_SIZE
28
# define BUFFER_SIZE 1024
29
# endif
30
34
# ifndef MAX_FD
35
# define MAX_FD 1024
36
# endif
37
38
# include "stdlib.h"
39
# include "unistd.h"
40
41
char
*
get_next_line
(
int
fd);
42
char
*ft_strdup(
const
char
*s1);
43
char
*ft_strjoin(
char
const
*s1,
char
const
*s2);
44
void
*ft_memcpy(
void
*dst,
const
void
*src,
size_t
n);
45
size_t
ft_strlen(
const
char
*str);
46
47
#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.h