https://github.com/deryaxacar/42-get_next_line
This project provides the ability to read a line from a file using the standard input function. The get_next_line function is used to read characters from a file, and it can also handle multiple files simultaneously.
https://github.com/deryaxacar/42-get_next_line
42 42- 42born2code 42cursus 42projects 42school c c-language c-learning c-programming c-programming-language c-project cprogramming get-next-line getnextline project
Last synced: about 1 month ago
JSON representation
This project provides the ability to read a line from a file using the standard input function. The get_next_line function is used to read characters from a file, and it can also handle multiple files simultaneously.
- Host: GitHub
- URL: https://github.com/deryaxacar/42-get_next_line
- Owner: deryaxacar
- Created: 2024-01-10T20:07:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T16:07:04.000Z (3 months ago)
- Last Synced: 2025-03-27T04:07:14.428Z (about 2 months ago)
- Topics: 42, 42-, 42born2code, 42cursus, 42projects, 42school, c, c-language, c-learning, c-programming, c-programming-language, c-project, cprogramming, get-next-line, getnextline, project
- Language: C
- Homepage: https://github.com/deryaxacar/42-Get_next_line
- Size: 1.46 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
42 - Get_next_line 📄
This project provides the ability to read a line from a file using the standard input function. The get_next_line function is used to read characters from a file, and it can also handle multiple files simultaneously.## Project Objective 🎯
This project helps us gain experience in file handling, memory management, and thread programming. Additionally, we learn how to efficiently use static memory space, interact with files, and manage input/output operations in this project.
## Use Cases 📋
The get_next_line function reads a line from a file and can be called multiple times. Use cases may include:
- Reading a file line by line: `get_next_line(fd, &line);`
- Reading from multiple files simultaneously: `get_next_line(fd1, &line1); get_next_line(fd2, &line2);`## Project Contents 📂
The project includes the get_next_line function as well as helper functions and structures. The content includes:
- **get_next_line.c**: Contains the main get_next_line function definitions.
- **get_next_line.h**: The project header file, containing prototypes and structure definitions.
- **get_next_line_bonus.c**: Contains extra function definitions for the bonus part.
- **get_next_line_bonus.h**: The header file for the bonus part, containing prototypes and structure definitions.
- **get_next_line_utils.c**: Contains helper function definitions.
- **get_next_line_utils_bonus.c**: Contains helper function definitions for the bonus part.---
2025 This project was created by Derya ACAR.