push_swap/include/app/find_place.h

30 lines
1.2 KiB
C
Raw Permalink Normal View History

2024-01-11 21:28:36 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
2024-01-29 22:45:54 +01:00
/* find_place.h :+: :+: :+: */
2024-01-11 21:28:36 +01:00
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
2024-01-29 22:45:54 +01:00
/* Created: 2024/01/29 22:00:27 by maiboyer #+# #+# */
/* Updated: 2024/01/29 22:15:08 by maiboyer ### ########.fr */
2024-01-11 21:28:36 +01:00
/* */
/* ************************************************************************** */
2024-01-29 22:45:54 +01:00
#ifndef FIND_PLACE_H
# define FIND_PLACE_H
2024-01-11 21:28:36 +01:00
# include "app/state.h"
# include "me/types.h"
2024-01-11 21:28:36 +01:00
2024-01-29 22:45:54 +01:00
typedef struct s_find_place_iter_state
2024-01-11 21:28:36 +01:00
{
t_usize current_index;
t_usize found_index;
2024-01-29 22:45:54 +01:00
t_i64 to_find_elem;
2024-01-11 21:28:36 +01:00
} t_find_place_iter_state;
2024-01-11 21:28:36 +01:00
t_usize find_place(t_i64 elem, t_state *state);
2024-01-29 22:45:54 +01:00
#endif /* FIND_PLACE_H */