FlavioAMiceli / get_next_line

Function used to read data one line at a time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_next_line

Function used to read data one line at a time.

TOC

What is get_next_line?

This function is a useful extension to the libft library that allows you to read a line ending with a newline character from a file descriptor.

At Codam we are generally not allowed to use code that we haven't written ourselves. This means that for most projects we are only allowed read(), write(), malloc() and free() from libc, and our own libft library.

What's in it?

This project needs to conform to the gnl project. It's a function that returns the next line from a file descriptor each time it is called. My implementation can handle different file descriptors in the same program.

Installation

According to the subject this project can't contain a makefile. I have included it in my libft project, so the easiest way to use it is from there.

About

Function used to read data one line at a time.


Languages

Language:C 96.7%Language:Makefile 3.3%