diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-10 02:22:33 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-10 02:22:33 +0100 |
| commit | 48f43e34e9beafbc76a85c6f6874aae051981c72 (patch) | |
| tree | 6bc73d0537019932fd0478fc074de2d235134002 /include/libft_algo.h | |
| parent | 0acdc4fec5cae4e619d0f4f8bd67e171bffa110e (diff) | |
| parent | a5b068767440327f910dfa815be12ff4c0d94309 (diff) | |
| download | libft-48f43e34e9beafbc76a85c6f6874aae051981c72.tar.gz libft-48f43e34e9beafbc76a85c6f6874aae051981c72.tar.bz2 libft-48f43e34e9beafbc76a85c6f6874aae051981c72.zip | |
Merge branch 'push_swap'
Diffstat (limited to 'include/libft_algo.h')
| -rw-r--r-- | include/libft_algo.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/libft_algo.h b/include/libft_algo.h new file mode 100644 index 0000000..4dc3353 --- /dev/null +++ b/include/libft_algo.h @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_algo.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/19 07:22:57 by cacharle #+# #+# */ +/* Updated: 2020/02/10 02:21:47 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef LIBFT_ALGO_H +# define LIBFT_ALGO_H + +typedef int t_bool; + +typedef struct +{ + int lo; + int hi; +} t_ftrange; + +typedef int (*t_ftcompar_func)(const void*, const void*); + +t_bool ft_is_set(void *base, size_t nel, size_t width, + t_ftcompar_func compar); +void ft_qsort(void *base, size_t nel, size_t width, + t_ftcompar_func compar); +int ft_compar_int(const void *a, const void *b); + +#endif |
