Coder Social home page Coder Social logo

42lisboa-level1-get_next_line's Introduction

GET NEXT LINE

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

The biggest challenge of this project is to make it work with any given BUFFER_SIZE defined during compilation time with the -D flag.

All code is written in accordance to the norminette version running at the time of project completion.

How to use it

Both the normal and bonus functions work the same, so it doesn't matter if you compile the _bonus.c functions or .c functions.

_bonus.c have to be included for project validation otherwise you will not be graded for them.

You will need to have your own main function which calls the get_next_line function in a loop until it reads the whole file.

Example of a compilation command

gcc-Wall -Wextra -Werror -D BUFFER_SIZE=32 main.c get_next_line.c get_next_line_utils.c

Notes to 42 students

When sending the project for correction you must not have a main function, you should have your own main only for testing.

Moulinette will have its own main function that calls your GNL function in a loop.

Contact

For any questions regarding my project email me at: [email protected]

Or if you are a 42student my slack username is: ngregori

42lisboa-level1-get_next_line's People

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.