{"id":25311669,"url":"https://github.com/rogeriols/get_next_line-42sp","last_synced_at":"2025-09-01T13:36:32.334Z","repository":{"id":193766701,"uuid":"689397748","full_name":"RogerioLS/Get_Next_Line-42sp","owner":"RogerioLS","description":"This projects is about creating a function that, allows to read a line ending with a newline character ('\\n') from a file descriptor, without knowing its size beforehand.","archived":false,"fork":false,"pushed_at":"2024-01-17T00:38:27.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T14:53:36.215Z","etag":null,"topics":["42projects","42school","c","getnextline","gnl"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RogerioLS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-09T17:16:03.000Z","updated_at":"2023-09-09T21:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c88ba4a7-bdaa-46da-bbe2-f5aca1929984","html_url":"https://github.com/RogerioLS/Get_Next_Line-42sp","commit_stats":null,"previous_names":["rogeriols/get_next_line-42sp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FGet_Next_Line-42sp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FGet_Next_Line-42sp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FGet_Next_Line-42sp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerioLS%2FGet_Next_Line-42sp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RogerioLS","download_url":"https://codeload.github.com/RogerioLS/Get_Next_Line-42sp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648974,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42projects","42school","c","getnextline","gnl"],"created_at":"2025-02-13T14:53:37.449Z","updated_at":"2025-04-07T12:20:11.437Z","avatar_url":"https://github.com/RogerioLS.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = center\u003e\n\n# :clipboard: Get_Next_Line | 42 SP\n\n[![Norminette and Build](https://github.com/RogerioLS/Get_Next_Line-42sp/actions/workflows/main.yml/badge.svg)](https://github.com/RogerioLS/Get_Next_Line-42sp/actions/workflows/main.yml)\n![Static Badge](https://custom-icon-badges.demolab.com/badge/GET_NEXT_LINE-42-blue?logo=gnl\u0026logoColor=white)\n![42 São Paulo](https://img.shields.io/badge/42-SP-1E2952)\n![License](https://custom-icon-badges.demolab.com/github/license/RogerioLS/Get_Next_Line-42sp?logo=law\u0026color=dark-green)\n![Code size in bytes](https://custom-icon-badges.demolab.com/github/languages/code-size/RogerioLS/Get_Next_Line-42sp?logo=file-code\u0026color=dark-green)\n![Top language](https://img.shields.io/github/languages/top/RogerioLS/Get_Next_Line-42sp?color=dark-green)\n![Last commit](https://custom-icon-badges.demolab.com/github/last-commit/RogerioLS/Get_Next_Line-42sp?logo=history\u0026color=dark-green)\n![Repo size](https://custom-icon-badges.demolab.com/github/repo-size/RogerioLS/Get_Next_Line-42sp?logo=database)\n![Languages](https://custom-icon-badges.demolab.com/github/languages/count/RogerioLS/Get_Next_Line-42sp?logo=command-palette\u0026color=red)\n![GitHub repo file count (file type)](https://custom-icon-badges.demolab.com/github/directory-file-count/RogerioLS/Get_Next_Line-42sp%2Fsources?logo=file\u0026label=files%20sources\u0026color=8602b1)\n![Discord](https://custom-icon-badges.demolab.com/discord/1114673462859006044?\u0026logo=comments\u0026label=testemunhas%20de%20vim\u0026color=ffbe3a)\n\u003c/div\u003e\n\n---\n\n\u003cdiv align = center\u003e\n\n![](https://game.42sp.org.br/static/assets/achievements/get_next_linem.png)\n\n\u003c/div\u003e\n\n- Actual Status : finished.\n- Result        : Approved with 125 points by moulinette (the 42 tester) ✅\n\n  GNL is the second project at 42.\n  The aim of this project is to write a function that reads a file of buffer size specified by the user parameter and returns only one line each time the function is called.\n  There are two main challenges: handling varying buffer sizes and eliminating memory leaks.\n## 📝 Functions\n\n| Function | Description |\n| :------: | :---------: |\n| ``get_next_line.c`` | Contains the functions that compose the program logic, make with array.|\n| ``get_next_line_utils`` | Contains the auxiliary functions. |\n| ``get_next_line.h`` | The header with functions libraries and prototypes. |\n| ``get_next_line_bonus.c`` | Contains the functions that compose the program logic, make with array.|\n| ``get_next_line_utils_bonus`` | Contains the auxiliary functions. |\n| ``get_next_line_bonus.h`` | The header with functions libraries and prototypes. |\n\n\n## :star: Bonus\nThe same function but the challenge is dealing with multiple file descriptors!\n\n## 🛠️ Usage\n\nIn order to use this function in your project, you must download this repository into your pc \n\n``` shell\n$\u003e git clone https://github.com/RogerioLS/Get_Next_Line-42sp\n```\nModify the path of the .txt file to one file of your preference in the main.\n\nCompile with the command below (remember to replace \"n\" to the number of your preference):\n``` shell\n$\u003e cc -Wall -Wextra -Werror -D BUFFER_SIZE=n get_next_line_bonus.c get_next_line_utils_bonus.c main.c\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriols%2Fget_next_line-42sp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogeriols%2Fget_next_line-42sp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriols%2Fget_next_line-42sp/lists"}