43 lines
1.7 KiB
C
43 lines
1.7 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* pushswap.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/11/08 18:19:44 by cchauvet #+# #+# */
|
|
/* Updated: 2022/12/01 16:51:27 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef PUSHSWAP_H
|
|
# define PUSHSWAP_H
|
|
# include <unistd.h>
|
|
# include <stdlib.h>
|
|
# include <limits.h>
|
|
# define STOP_VALUE 4294967295
|
|
|
|
int ft_isnum(char *str);
|
|
int ft_atoi(char *str);
|
|
void ft_putstr(char *str);
|
|
char **ft_split(const char *s, char c);
|
|
|
|
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(unsigned int *tab);
|
|
int ft_is_sorted(unsigned int *in);
|
|
|
|
void ft_radix_sort(unsigned int *tab_a, unsigned int *tab_b);
|
|
|
|
void ft_swap(unsigned int *a, unsigned int *b);
|
|
void ft_pa(unsigned int *tab_a, unsigned int *tab_b);
|
|
void ft_pb(unsigned int *tab_a, unsigned int *tab_b);
|
|
void ft_ra(unsigned int *tab_a);
|
|
void ft_rb(unsigned int *tab_b);
|
|
|
|
#endif
|