diff --git a/Data Structures/C-Structures/ex1/ft_stock_str.h b/Data Structures/C-Structures/ex1/ft_stock_str.h new file mode 100644 index 0000000..882c3b8 --- /dev/null +++ b/Data Structures/C-Structures/ex1/ft_stock_str.h @@ -0,0 +1,22 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_stock_str.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: lclerel- +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2026/03/26 02:05:19 by lclerel- #+# #+# */ +/* Updated: 2026/03/26 02:06:44 by lclerel- ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef F_STOCK_STR_H +#define F_STOCK_STR_H + +typedef struct s_stock_str +{ + int size; + char *str; + char *copy; +} t_stock_str; +#endif diff --git a/Data Structures/C-Structures/ex1/ft_strs_to_tab.c b/Data Structures/C-Structures/ex1/ft_strs_to_tab.c index fa83559..cb6bed8 100644 --- a/Data Structures/C-Structures/ex1/ft_strs_to_tab.c +++ b/Data Structures/C-Structures/ex1/ft_strs_to_tab.c @@ -6,7 +6,7 @@ /* By: lclerel- +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2026/03/25 22:54:18 by lclerel- #+# #+# */ -/* Updated: 2026/03/26 01:19:03 by lclerel- ### ########.fr */ +/* Updated: 2026/03/26 02:07:14 by lclerel- ### ########.fr */ /* */ /* ************************************************************************** */ @@ -74,7 +74,7 @@ int ft_strlen(char *str) } return (i); } -/* + void ft_putstr(char *str) { int i; @@ -156,24 +156,24 @@ int main(int argc, char **argv) ft_putstr("| Taille : |\n"); ft_putstr("| > "); ft_putnbr(tab[i].size); - spaces = 26 - 4 - ft_nbrlen(tab[i].size); + spaces = 27 - 4 - ft_nbrlen(tab[i].size); ft_stylebox(spaces); ft_putstr("|\n"); ft_putstr("| String : |\n"); ft_putstr("| > "); ft_putstr(tab[i].str); - spaces = 26 - 4 - ft_strlen(tab[i].str); + spaces = 27 - 4 - ft_strlen(tab[i].str); ft_stylebox(spaces); ft_putstr("|\n"); ft_putstr("| |\n"); ft_putstr("| Result : |\n"); ft_putstr("| > "); ft_putstr(tab[i].copy); - spaces = 26 - 4 - ft_strlen(tab[i].copy); + spaces = 27 - 4 - ft_strlen(tab[i].copy); ft_stylebox(spaces); ft_putstr("|\n"); ft_putstr("\\==========================/\n\n"); i++; } return (0); -}*/ +} diff --git a/Data Structures/C-Structures/ex1/test b/Data Structures/C-Structures/ex1/test new file mode 100755 index 0000000..e7945c8 Binary files /dev/null and b/Data Structures/C-Structures/ex1/test differ diff --git a/Images/C-Strings-Tries.png b/Images/C-Strings-Tries.png new file mode 100644 index 0000000..e419a48 Binary files /dev/null and b/Images/C-Strings-Tries.png differ diff --git a/Images/HolyGraph.png b/Images/HolyGraph.png index e659418..b3c5e34 100644 Binary files a/Images/HolyGraph.png and b/Images/HolyGraph.png differ diff --git a/Images/Level.png b/Images/Level.png index 1815b18..b779d6d 100644 Binary files a/Images/Level.png and b/Images/Level.png differ diff --git a/Images/Memory-Management.png b/Images/Memory-Management.png index a49d8db..f66a5af 100644 Binary files a/Images/Memory-Management.png and b/Images/Memory-Management.png differ diff --git a/Images/Stats.png b/Images/Stats.png index 402b89e..9fef4be 100644 Binary files a/Images/Stats.png and b/Images/Stats.png differ