aboutsummaryrefslogtreecommitdiff
path: root/src/lst/ft_lstsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lst/ft_lstsort.c')
-rw-r--r--src/lst/ft_lstsort.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lst/ft_lstsort.c b/src/lst/ft_lstsort.c
index e1c9913..9945a0f 100644
--- a/src/lst/ft_lstsort.c
+++ b/src/lst/ft_lstsort.c
@@ -12,6 +12,12 @@
#include "libft_lst.h"
+/*
+** \brief Sort list
+** \param cmp Comparison function, <0 if less, 0 if equal, >0 if greater
+** \note Use merge sort algorithm
+*/
+
void ft_lstsort(t_ftlst **begin_list, t_ftcompar_func cmp)
{
t_ftlst *fast;