-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mathis ROLY
committed
Apr 4, 2022
1 parent
eab193f
commit 3653f84
Showing
197 changed files
with
4,200 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* utils_str2.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: maroly <maroly@student.42.fr> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/04/04 13:42:39 by maroly #+# #+# */ | ||
/* Updated: 2022/04/04 14:00:29 by maroly ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "include.h" | ||
|
||
int check_rgb(char **tab) | ||
{ | ||
int i; | ||
int j; | ||
|
||
i = 0; | ||
while (tab[i]) | ||
{ | ||
j = -1; | ||
while (tab[i][++j]) | ||
if (!(tab[i][j] >= '0' && tab[i][j] <= '9')) | ||
return (1); | ||
i++; | ||
} | ||
if (i != 3) | ||
return (1); | ||
return (0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
R 1080 720 | ||
NO ./textures/greystone.xpm | ||
SO ./textures/redbrick.xpm | ||
EA ./textures/wood.xpm | ||
WE ./textures/wood.xpm | ||
S ./textures/barrel.xpm | ||
C 255,200, | ||
F 122,122,122 | ||
|
||
11111111111111111 | ||
10000000000000001 | ||
10200000200000201 | ||
10000000000000001 | ||
10002000200020001 | ||
10000000000000001 | ||
10202020N02020201 | ||
10000000000000001 | ||
10002000200200001 | ||
10000000000000001 | ||
10200000200002001 | ||
10000000000000001 | ||
11111111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
R 1080 720 | ||
NO ./textures/greystone.xpm | ||
SO ./textures/redbrick.xpm | ||
EA ./textures/wood.xpm | ||
WE ./textures/wood.xpm | ||
S ./textures/barrel.xpm | ||
C 255,200,160 | ||
F | ||
|
||
11111111111111111 | ||
10000000000000001 | ||
10200000200000201 | ||
10000000000000001 | ||
10002000200020001 | ||
10000000000000001 | ||
10202020N02020201 | ||
10000000000000001 | ||
10002000200200001 | ||
10000000000000001 | ||
10200000200002001 | ||
10000000000000001 | ||
11111111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
R 1080 720 | ||
NO ./textures/greystone.xpm | ||
SO ./textures/redbrick.xpm | ||
EA ./textures/wood.xpm | ||
WE ./textures/wood.xpm | ||
S ./textures/barrel.xpm | ||
C | ||
F 122,122,122 | ||
|
||
11111111111111111 | ||
10000000000000001 | ||
10200000200000201 | ||
10000000000000001 | ||
10002000200020001 | ||
10000000000000001 | ||
10202020N02020201 | ||
10000000000000001 | ||
10002000200200001 | ||
10000000000000001 | ||
10200000200002001 | ||
10000000000000001 | ||
11111111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
R 1080 720 | ||
NO ./textures/greystone.xpm | ||
SO ./textures/redbrick.xpm | ||
EA ./textures/wood.xpm | ||
WE ./textures/wood.xpm | ||
S ./textures/barrel.xpm | ||
C 255,200,160 | ||
|
||
|
||
11111111111111111 | ||
10000000000000001 | ||
10200000200000201 | ||
10000000000000001 | ||
10002000200020001 | ||
10000000000000001 | ||
10202020N02020201 | ||
10000000000000001 | ||
10002000200200001 | ||
10000000000000001 | ||
10200000200002001 | ||
10000000000000001 | ||
11111111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
R 1080 720 | ||
NO ./textures/greystone.xpm | ||
SO ./textures/redbrick.xpm | ||
EA ./textures/wood.xpm | ||
WE ./textures/wood.xpm | ||
S ./textures/barrel.xpm | ||
|
||
F 122,122,122 | ||
|
||
11111111111111111 | ||
10000000000000001 | ||
10200000200000201 | ||
10000000000000001 | ||
10002000200020001 | ||
10000000000000001 | ||
10202020N02020201 | ||
10000000000000001 | ||
10002000200200001 | ||
10000000000000001 | ||
10200000200002001 | ||
10000000000000001 | ||
11111111111111111 |
Oops, something went wrong.