libft
Loading...
Searching...
No Matches
get_next_line.h File Reference
#include <unistd.h>
#include <stdlib.h>
#include "libft.h"

Go to the source code of this file.

Macros

#define BUFFER_SIZE   1024
 

Functions

char * get_next_line (int fd)
 Gets next line from a file.
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Definition at line 21 of file get_next_line.h.

Function Documentation

◆ get_next_line()

char * get_next_line ( int  fd)

Gets next line from a file.

Everytime the function is called it returns the next line from a file. Works with multiple files.

Parameters
fdFile descriptor
Returns
String or NULL if there is no more lines in the file
Attention
Allocates memory

Definition at line 95 of file get_next_line.c.