Skip to content

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

Notifications You must be signed in to change notification settings

leogaudin/get_next_line

Repository files navigation

🤓 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.

Releases

No releases published

Packages

No packages published

Languages