Skip to content

Makgora/get_next_line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get_next_line

This project consist of writing a function get_next_line which extract the next line in a file.

There are some features this function must implement:

  • we only use functions from libft.
  • we need to implement a buffer. We can't come back in the file descriptor. We can't move in the file descriptor. We can only use read, free, malloc. No call to lseek.
  • we can't use global variable.
  • we can't use FILE structure. We need to create one.
  • we can read multiple file descriptors at the same time (which implies a buffer).
  • we can't have memory leaks: every malloc must be freed.
  • the buffer size (use by read) can be changed.

How to compile and test it

First, add a main.c with some tests

make

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors