Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 742 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 742 Bytes

42Madrid School get_next_line project

Mandatory: Score 100/100

Bonus: Score 15/15


Challenge

Subject We must create a function that returns a line read from a file descriptor followed by a newline

  • If we call again the function , it should return the next line of the file descriptor -the project is oriented towards learning the concept of static variables-

As bonuses it should be able to:

  • Being able to read from and alternate between multiple file descriptors
  • Use a single static variable

Standard library functions can't be used. We are able to use any function made by ourselves and included in ft_libft. We can use the functions read, malloc & free The function must conform to 42's norm.