42_push_swap/pushswap.h

46 lines
1.7 KiB
C
Raw Normal View History

2022-11-23 15:44:27 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pushswap.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/08 18:19:44 by cchauvet #+# #+# */
2022-11-30 14:11:35 -05:00
/* Updated: 2022/11/30 13:30:55 by cchauvet ### ########.fr */
2022-11-23 15:44:27 -05:00
/* */
/* ************************************************************************** */
#ifndef PUSHSWAP_H
# define PUSHSWAP_H
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
int ft_isnum(char *str);
int ft_atoi(char *str);
void ft_putstr(char *str);
2022-11-30 14:11:35 -05:00
char **ft_split(const char *s, char c);
2022-11-23 15:44:27 -05:00
void ft_sort(int *tab, int size);
int ft_get_max_index(int *tab, int len);
int ft_get_max_index(int *tab, int len);
int ft_get_min_index(int *tab, int len);
int ft_get_min_index(int *tab, int len);
int ft_tablen(int *tab);
2022-11-30 07:21:32 -05:00
int ft_is_sorted(int *in);
2022-11-23 15:44:27 -05:00
2022-11-30 07:21:32 -05:00
int ft_bit_finder_left(int big, int tofind);
int ft_bit_finder_right(int big, int tofind);
2022-11-29 08:06:22 -05:00
int ft_get_bit_max(int *tab);
2022-11-30 07:21:32 -05:00
int ft_get_bit_min(int *tab);
2022-11-29 08:06:22 -05:00
void ft_radix_sort(int *tab_a, int *tab_b);
2022-11-23 15:44:27 -05:00
void ft_swap(int *a, int *b);
2022-11-29 08:06:22 -05:00
void ft_pa(int *tab_a, int *tab_b);
void ft_pb(int *tab_a, int *tab_b);
void ft_ra(int *tab_a);
void ft_rb(int *tab_b);
2022-11-23 15:44:27 -05:00
#endif