An open API service indexing awesome lists of open source software.

https://github.com/0bvim/get_next_line


https://github.com/0bvim/get_next_line

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

![GNL](../../../42-project-badges/blob/main/covers/cover-get_next_line-bonus.png)

# Reading a line from a fd is way too tedious!
> This proje is about programming a function that returns a line read from a file descriptor.
> Version '11'

## How to use it?
> First clone it in you preferred way

If you don't know how clone a repository, here's how --> [RTFM!!!](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)

`SSH`
```
git@github.com:vinicius-f-pereira/get_next_line.git
```
`GitHub CLI`
```
gh repo clone vinicius-f-pereira/get_next_line
```
`HTTPS`
```
https://github.com/vinicius-f-pereira/get_next_line.git
```

## After clone repository follow this steps

`move to folder`
```
cd get_next_line
```
`use make commands to build mandatory, bonus, clean objectes, clean all generated files`
```
make
```
```
make bonus
```
```
make clean #to clean objetcts
make fclean #to clean objects and executable
```

## To execute programm
```
./get_next_line
```
> In directory have 2 files, `test.txt` and `test1.txt`. You can edit this files see how programm really works.
> If you compile programm with bonus the executable should handle both files. In mandatory, just one.