GithubHelp home page GithubHelp logo

nuno-jesus / 42_get_next_line Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

A function to read a line from a file descriptor

C 100.00%
42 42born2code 42cursus 42get-next-line 42porto 42school c programming c-static-variables

42_get_next_line's Introduction

Get Next Line

This project was graded 125/100.

๐Ÿ“’ About

In this project you will implement a very useful function, that exists in higher level languages, but not in C. You must read a line from a given file descriptor (including the line break) and return it in a new allocated string. Yes, you will find it very boring to do, but it will come in handy at the right moment. You'll learn about static variables, the read() and open() functions and file descriptors.

๐Ÿ”ง Implementation

Part File Name Functionality
Mandatory get_next_line.c Contains functions specifically developed for this project
get_next_line_utils.c Contains functions from libft with a few changes to fit in the project
get_next_line.h Contains the headers of all .c files
Bonus get_next_line_bonus.c Contains functions specifically developed for this project
get_next_line_utils_bonus.c Contains functions from libft with a few changes to fit in the project
get_next_line_bonus.h Contains the headers of all .c files

๐Ÿ“ฆ Compilation

This project does not hold a Makefile for compilation, but in case you have a main.c file that uses this functions, you can link every file in the same executable like so:

$ cc -Wall -Wextra -Werror main.c (REPLACE BY PATH TO THIS FOLDER)/*.c

Dont forget to include the .h files!

๐Ÿ’ซ Testing

This project was tested using the gnlTester and manual revision only.

๐Ÿ“ž Contact me

Feel free to ask me any questions through Slack (ncarvalh).

42_get_next_line's People

Contributors

nuno-jesus avatar

Stargazers

 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.