Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mendes-jv authored Jun 20, 2023
1 parent ac6f4e3 commit 8e81dc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ Or, if you want to test the bonus version of the functions (it's the same functi
Now, when compiling your code, add the source files and the required flag:

```sh
[gcc | cc | clang] [flags] -D BUFFER_SIZE=[any number > 0] get_next_line.c get_next_line_utils.c && ./a.out
[gcc | cc | clang] [flags] -D BUFFER_SIZE=[any number > 0] src/mandatory/get_next_line.c src/mandatory/get_next_line_utils.c && ./a.out
```
Or, if you want to compile the bonus files:

```sh
[gcc | cc | clang] [flags] -D BUFFER_SIZE=[any number > 0] get_next_line_bonus.c get_next_line_utils_bonus.c && ./a.out
[gcc | cc | clang] [flags] -D BUFFER_SIZE=[any number > 0] src/bonus/get_next_line_bonus.c src/bonus/get_next_line_utils_bonus.c && ./a.out
```

You can test the functions with the files provided by me in this respository using:

```sh
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=42 get_next_line.c get_next_line_utils.c main.c && ./a.out
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=42 src/mandatory/get_next_line.c src/mandatory/get_next_line_utils.c src/main.c && ./a.out
```
Or

```sh
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=42 get_next_line_bonus.c get_next_line_utils_bonus.c main.c && ./a.out
gcc -Wall -Werror -Wextra -D BUFFER_SIZE=42 src/bonus/get_next_line_bonus.c src/bonus/get_next_line_utils_bonus.c src/main.c && ./a.out
```
This functions is also avaliable to use at my other 42 project called [Libft](https://github.com/mendes-jv/libft).

0 comments on commit 8e81dc9

Please sign in to comment.