starting the refactor on the folders

This commit is contained in:
Maoake Teriierooiterai
2026-01-07 08:13:27 +01:00
parent a78b3f1a44
commit 2b255b94da
4 changed files with 176 additions and 0 deletions

33
headers/medium_headers.h Normal file
View File

@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* medium_headers.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/07 07:47:49 by mteriier #+# #+# */
/* Updated: 2026/01/07 07:47:51 by mteriier ### ########lyon.fr */
/* */
/* ************************************************************************** */
#ifndef MEDIUM_HEADERS_H
# define MEDIUM_HEADERS_H
typedef struct s_tab
{
int max_range;
int nb_in;
struct s_tab *next;
} t_tab;
/* MEDIUM ALGO FILE */
int wich_path(t_stacks *piles, int max_range, int range, char c);
int stack_len(t_stack *stack);
void bucket_algo(t_stacks *piles, t_tab *preset, int range);
/* SORT UTILS 2 FILE */
void sort_from_left(t_stacks *piles);
void sort_from_right(t_stacks *piles);
/* SORT UTILS FILE */
#endif