Skip to content

About

A parsing function that returns the next line of the input file(s) passed in parameter. Project of the 42 school 2020 cursus

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

42 Paris project - Get Next Line

alienard's 42 get_next_line Score

Subject :

Parsing of given file director(s) function.

Goals :

  • give us a better understanding of statics and file descriptors behavior
  • have a basic parsing function to use in the next projects

Behavior :

  • reads the fd sent in the first parameter
  • returns 1 if it finds '\n' in the file with the corresponding line allocated into the second parameter
  • returns 0 if EOF
  • returns -1 if error

Bonuses :

  • handles multiple fd simultaneously (thanks to linked lists)
  • uses only one static variable

About

A parsing function that returns the next line of the input file(s) passed in parameter. Project of the 42 school 2020 cursus

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages