leogaudin / get_next_line

Write a function that returns a line read from a file descriptor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€“ get_next_line

πŸ’‘ About

Prototype

char *get_next_line(int fd);

Turn-in files

  • get_next_line.c
  • get_next_line_utils.c
  • get_next_line.h

Return value

  • Read line: correct behavior
  • NULL: nothing else to read or an error occurred

Allowed external functions

  • read
  • malloc
  • free

Description

❌ Write a function that returns a line read from a file descriptor.

βœ… How to hate yourself and memory management.

Subject

πŸ‡«πŸ‡· Link to the subject here

πŸ§ͺ Testing

Testing was conducted using francinette and gnlTester.

About

Write a function that returns a line read from a file descriptor.


Languages

Language:C 100.0%