aboutsummaryrefslogtreecommitdiff
path: root/include/libft_algo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libft_algo.h')
-rw-r--r--include/libft_algo.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/include/libft_algo.h b/include/libft_algo.h
index e726d1f..e859de5 100644
--- a/include/libft_algo.h
+++ b/include/libft_algo.h
@@ -6,10 +6,15 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/19 07:22:57 by cacharle #+# #+# */
-/* Updated: 2020/04/04 15:46:10 by charles ### ########.fr */
+/* Updated: 2020/04/04 23:33:51 by charles ### ########.fr */
/* */
/* ************************************************************************** */
+/*
+** \file libft_algo.h
+** \brief Algorithms
+*/
+
#ifndef LIBFT_ALGO_H
# define LIBFT_ALGO_H
@@ -18,12 +23,26 @@
# include "libft_def.h"
# include "libft_str.h"
+/*
+** \brief Range struct
+** \param lo Lower bound
+** \param hi Upper bound
+*/
+
typedef struct
{
int lo;
int hi;
} t_ftrange;
+/*
+** \brief Merge sort consts struct
+** \param base Array to sort
+** \param left Left subarray
+** \param right Right subarray
+** \note Only used internaly by ft_mergesort
+*/
+
struct s_merge_sorted_arrays
{
void *base;
@@ -31,6 +50,10 @@ struct s_merge_sorted_arrays
void *right;
};
+/*
+** remove this horror
+*/
+
typedef struct s_ft_search_const
{
const void *key;