{"id":19657419,"url":"https://github.com/zakariaelbouzkri/line_reader","last_synced_at":"2025-10-27T06:19:40.035Z","repository":{"id":161709067,"uuid":"565784120","full_name":"ZakariaElbouzkri/line_reader","owner":"ZakariaElbouzkri","description":"This project is about programming a function that returns a line read from a file descriptor.","archived":false,"fork":false,"pushed_at":"2024-10-27T00:53:49.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T00:50:52.260Z","etag":null,"topics":["c","file-des","static-variables"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZakariaElbouzkri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-14T10:17:05.000Z","updated_at":"2024-10-27T00:58:41.000Z","dependencies_parsed_at":"2024-10-27T01:50:50.518Z","dependency_job_id":"c8d8f442-441b-4743-9566-1e358e32cb82","html_url":"https://github.com/ZakariaElbouzkri/line_reader","commit_stats":null,"previous_names":["zakariaelbouzkri/get_next_line","zakariaelbouzkri/42get_next_line"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakariaElbouzkri%2Fline_reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakariaElbouzkri%2Fline_reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakariaElbouzkri%2Fline_reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakariaElbouzkri%2Fline_reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZakariaElbouzkri","download_url":"https://codeload.github.com/ZakariaElbouzkri/line_reader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240965290,"owners_count":19885904,"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":["c","file-des","static-variables"],"created_at":"2024-11-11T15:32:06.943Z","updated_at":"2025-10-27T06:19:34.993Z","avatar_url":"https://github.com/ZakariaElbouzkri.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003ch1\u003e# 📖 1337_get_neext_line\u003c/h1\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cb\u003e\u003ci\u003eReading a line on a fd is way too tedious\u003c/i\u003e\u003c/b\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"GitHub code size in Kilo bytes\" src=\"https://img.shields.io/github/repo-size/zel-bouz/133_get_neext_line\" /\u003e\n\t\u003cimg alt=\"Number of lines of code\" src=\"https://img.shields.io/tokei/lines/github/zel-bouz/133_get_neext_line\" /\u003e\n\t\u003cimg alt=\"Code language count\" src=\"https://img.shields.io/github/languages/top/zel-bouz/133_get_neext_line\" /\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n\t\u003ca href=\"#%EF%B8%8F-usage\"\u003eUsage\u003c/a\u003e\n\t\u003cspan\u003e · \u003c/span\u003e\n\t\u003ca href=\"#-testing\"\u003eTesting\u003c/a\u003e\n\u003c/h3\u003e\n\n---\n\n## 💡 About the project\n\n\u003e _The aim of this project is to make you code a function that returns a line, read from a file descriptor._\n\n\tYou will understand how files are opened, read and closed in an OS,\n\tand how they are interpreted by a programming language for further analysis.\n\tThis task is crucial to understand for a future programmer since much of the time is based\n\ton manipulating files for data management and persistence.\n\tThis project consists of coding a function that returns one line at a time from a text file.\n\n## 🛠️ Usage\n\n### Requirements\n\nThe function is written in C language and thus needs the **`gcc` compiler** and some standard **C libraries** to run.\n\n### Instructions\n\n**1. Using it in your code**\n\nTo use the function in your code, simply include its header:\n\n```C\n#include \"get_next_line.h\"\n```\nOR:\n\n```C\n#include \"get_next_line_bonus.h\"\n```\nFor bonus part to from multiple file descriptors at the same time .\n\nand, when compiling your code, add the source files and the required flag:\n\n```shell\nget_next_line.c get_next_line_utils.c -D BUFFER_SIZE=\u003cn\u003e\n```\n\n### Returns\n- Readed Line : correct beahviore\n- NULL : if Nothing else to read or an error occured\n\n## 📋 Testing\n\nYou only have to edit the get_next_line.c file and uncomment the main function and headers inside it.\nYou can edit test.txt files to put another text if you wish to test othe cases.\nThen simply run this command (change \"xx\" with desired buffer size) :\n\n```shell\ngcc -Wall -Werror -Wextra get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=n \u0026\u0026 ./a.out\n```\n\nOr you can also use this third party tester to fully test the project\n\n* [Tripouille/gnlTester](https://github.com/Tripouille/gnlTester)\n* [xicodomingues/francinette](https://github.com/xicodomingues/francinette)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakariaelbouzkri%2Fline_reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakariaelbouzkri%2Fline_reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakariaelbouzkri%2Fline_reader/lists"}