-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line.c
More file actions
23 lines (21 loc) · 1.05 KB
/
get_next_line.c
File metadata and controls
23 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nkay-hoo <nkay-hoo@student.42kl.edu.my> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/16 16:30:36 by nkay-hoo #+# #+# */
/* Updated: 2021/08/22 14:31:03 by nkay-hoo ### ########.fr */
/* */
/* ************************************************************************** */
#include "get_next_line.h"
char *get_next_line(int fd)
{
if (!fd)
return (0);
buffer = malloc (BUFFER_SIZE)
reader = read(fd, buffer, BUFFER_SIZE);
if(!reader)
return (0);
}