Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

PapyMonkey/42_get_next_line

Repository files navigation

42_get_next_line

Project instructions & grade

"This project will not only allow you to add a very convenient function to your collection, but it will also make you learn a highly interesting new concept in C programming: static variables."

Function name get_next_line
Prototype char *get_next_line(int fd);
Turn in files get_next_line.c, get_next_line_utils.c, get_next_line.h
Parameters fd: The file descriptor to read from
Return value Read line: correct behavior NULL: there is nothing else to read, or an error occurred
External functions read, malloc, free
Description Write a function that returns a line read from a file descriptor

get_next_line grade

About

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

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages