GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devhector/42_GNL

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
get_next_line.c
get_next_line.c
 
 
get_next_line.h
get_next_line.h
 
 
get_next_line_bonus.c
get_next_line_bonus.c
 
 
get_next_line_bonus.h
get_next_line_bonus.h
 
 
get_next_line_utils.c
get_next_line_utils.c
 
 
get_next_line_utils_bonus.c
get_next_line_utils_bonus.c
 
 
screenshot.png
screenshot.png
 
 

Repository files navigation

GNL

O get_next_line é uma função que retornar uma linha do arquivo lido.

Post explicando como foi desenvolvido

Principais aprendizados:
  • Assim como na libft, a organização foi essencial e aprimorada
  • Aprendi a resolver leaks de memória
  • Aprendi como o File Descriptor funciona
  • Aprendi como uma variável estática funciona

Mandatory part
  • Calling your function get_next_line in a loop will then allow you to read the text available on the file descriptor one line at a time until the end of it.
  • Your function should return the line that has just been read. If there is nothing else to read or if an error has occurred it should return NULL.
  • Make sure that your function behaves well when it reads from a file and when it reads from the standard input.
  • libft is not allowed for this project. You must add a get_next_line_utils.c file which will contain the functions that are needed for your get_next_line to work.
  • Your program must compile with the flag -D BUFFER_SIZE=xx which will be used as the buffer size for the read calls in your get_next_line. This value will be modified by your evaluators and by the moulinette.
  • Your read must use the BUFFER_SIZE defined during compilation to read from a file or from stdin. This value will be modified during the evaluation for testing purposes.
  • In the header file get_next_line.h you must have at least the prototype of the function get_next_line.

Evaluation

evaluation


Execução:
  1. Compilar a get_next_line:
gcc -Wall -Wextra -Werror -D BUFFER_SIZE=42 <files>.c

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.