tgrekov-fdf
HIVE fdf May 2024
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: 2024/04/22 05:42:31 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
40char *get_next_line(int fd);
41
42#endif
char * get_next_line(int fd)
Return the next segment of text ending in a newline or EOF from file descriptor fd.