42_push_swap/pushswap.h

39 lines
1.5 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 #+# #+# */
/* Updated: 2022/11/23 19:06:46 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#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);
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);
int ft_bit_finder(int big, int tofind);
char **ft_radix_sort(int *tab_a, int *tab_b);
void ft_swap(int *a, int *b);
void ft_p(int *tab_a, int *tab_b);
void ft_s(int *tab);
void ft_ss(int *tab1, int *tab2);
#endif