Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 635 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 635 Bytes

get-next-line

The aim of this project is to code a function that returns a line ending with a newline, read from a file descriptor.

This project also introduces the concept of static variables in C programming.

Technical considerations

  • Allowed functions: malloc, free, write
  • All heap allocated memory space must be properly freed when necessary

How to test

Run the following commands

$ git clone https://github.com/DelicaTessa/42-get_next_line.git
$ cd 42-get_next_line
$ gcc -D BUFFER_SIZE=32 -o get_next_line main.c get_next_line.c get_next_line_utils.c
$ ./get_next_line test.txt