aboutsummaryrefslogtreecommitdiff
path: root/include/libft_algo.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-03 07:19:25 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-03 07:19:25 +0200
commitd2feec1f97e9f8f201e56ad33662bb663c328a0a (patch)
treef97690082352bb1752d867d66f21a7bee1ef126c /include/libft_algo.h
parent948c0953527fe3bef28904b38a16a9e4342e7e98 (diff)
downloadlibft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.tar.gz
libft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.tar.bz2
libft-d2feec1f97e9f8f201e56ad33662bb663c328a0a.zip
Changing hash table del function to regular one with a first order internal function, removing a few typedef to instead use standard types
Diffstat (limited to 'include/libft_algo.h')
-rw-r--r--include/libft_algo.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/libft_algo.h b/include/libft_algo.h
index 7223e7b..04191e6 100644
--- a/include/libft_algo.h
+++ b/include/libft_algo.h
@@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* ft_algo.h :+: :+: :+: */
+/* libft_algo.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/19 07:22:57 by cacharle #+# #+# */
-/* Updated: 2020/02/10 05:58:26 by cacharle ### ########.fr */
+/* Updated: 2020/04/03 07:05:04 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,11 +14,8 @@
# define LIBFT_ALGO_H
# include <stdlib.h>
-# include <stddef.h>
# include "libft_mem.h"
-# include "libft_types.h"
-
-typedef int (*t_ftcompar_func)(const void*, const void*);
+# include "libft_def.h"
typedef struct
{
@@ -39,7 +36,7 @@ typedef struct s_ft_search_const
t_ftcompar_func compar;
} t_ftsearch_const;
-t_ftbool ft_is_set(void *base, size_t nel, size_t width,
+bool 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,