Skip to content

Codam get_next_line project - return a line ending with a newline from a file descriptor

Notifications You must be signed in to change notification settings

DelicaTessa/42-get-next-line

Repository files navigation

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

About

Codam get_next_line project - return a line ending with a newline from a file descriptor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages