From dd0c485ac4975b7dd6d2e230213be1da50d0a065 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 18 Sep 2020 16:39:52 +0200 Subject: Removing unnecessary stuff --- include/libft_algo.h | 59 ---------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 include/libft_algo.h (limited to 'include/libft_algo.h') diff --git a/include/libft_algo.h b/include/libft_algo.h deleted file mode 100644 index 7223e7b..0000000 --- a/include/libft_algo.h +++ /dev/null @@ -1,59 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_algo.h :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/01/19 07:22:57 by cacharle #+# #+# */ -/* Updated: 2020/02/10 05:58:26 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#ifndef LIBFT_ALGO_H -# define LIBFT_ALGO_H - -# include -# include -# include "libft_mem.h" -# include "libft_types.h" - -typedef int (*t_ftcompar_func)(const void*, const void*); - -typedef struct -{ - int lo; - int hi; -} t_ftrange; - -struct s_merge_sorted_arrays -{ - void *base; - void *left; - void *right; -}; - -typedef struct s_ft_search_const -{ - const void *key; - t_ftcompar_func compar; -} t_ftsearch_const; - -t_ftbool ft_is_set(void *base, size_t nel, size_t width, - t_ftcompar_func compar); -int ft_compar_int(const void *a, const void *b); -void ft_qsort(void *base, size_t nel, size_t width, - t_ftcompar_func compar); -int ft_mergesort(void *base, size_t nel, size_t width, - int (*compar)(const void *, const void *)); -int ft_heapsort(void *base, size_t nel, size_t width, - int (*compar)(const void *, const void *)); -void ft_reverse(void *base, size_t nel, size_t width); -void *ft_bsearch(const void *base, size_t nel, size_t width, - t_ftsearch_const *consts); -void *ft_lfind(const void *base, size_t *nelp, size_t width, - t_ftsearch_const *consts); -void *ft_lsearch(const void *base, size_t *nelp, size_t width, - t_ftsearch_const *consts); - -#endif -- cgit