GithubHelp home page GithubHelp logo

get_next_line's Introduction

ft_printf 100/100
125/100

Introduction to get_next_line

Get Next Line is an individual project at 1337 #42network that requires us to create a function similar to the getline from CPP and fgets from C. This function allows a file to be read line after line if called in a loop.

Prototype

char *get_next_line(int fd);

Description

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

External functs

read, malloc, free.

See the subjects for further information

SUBJECT

Functions table reference

The functions present in the utils are from the Libft with some code optimizations.

GNL Utils Functions

Name Description
ft_checker checks if the static variable has content on it and calculate the length of the the line.
ft_backup delete the printed line.
ft_putline Returns a string from a buffer.
get_next_line Reads a line from a file descriptor.

Libft Functions

Name Description
ft_strlen Computes the length of the string but not including the terminating null character.
ft_strdup Returns a pointer to a null-terminated byte string, which is a duplicate of the string.
ft_substr Converts the string to an integer (type int).
ft_memmove copies n bytes from memory area src to memory area dest, returns a pointer to dest.
ft_strjoin Returns a new string, which is the result of the concatenation of 's1' and 's2'.

get_next_line's People

Contributors

yopll avatar

Stargazers

 avatar  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.