aboutsummaryrefslogtreecommitdiff
path: root/include/libft_def.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-04 23:36:19 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-04 23:36:19 +0200
commit65cf641e9533b190db870d0cc46f2f852239ebf6 (patch)
treedf2002170b96d189493e54cb484390fb2af2a2d1 /include/libft_def.h
parent42316d8393d32bd88fb8e0cba6825185f78dacd0 (diff)
downloadlibft-65cf641e9533b190db870d0cc46f2f852239ebf6.tar.gz
libft-65cf641e9533b190db870d0cc46f2f852239ebf6.tar.bz2
libft-65cf641e9533b190db870d0cc46f2f852239ebf6.zip
Added test for ft_strsjoin, ft_strsjoinf, ft_vecpush_safe, Added doc for algo functions, tested functions
Diffstat (limited to 'include/libft_def.h')
-rw-r--r--include/libft_def.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/include/libft_def.h b/include/libft_def.h
index 69a7655..7406959 100644
--- a/include/libft_def.h
+++ b/include/libft_def.h
@@ -6,10 +6,15 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/31 10:36:56 by cacharle #+# #+# */
-/* Updated: 2020/04/03 07:04:57 by charles ### ########.fr */
+/* Updated: 2020/04/04 21:40:37 by charles ### ########.fr */
/* */
/* ************************************************************************** */
+/*
+** \file libft_def.h
+** \brief Type and constant definition
+*/
+
#ifndef LIBFT_DEF_H
# define LIBFT_DEF_H
@@ -30,7 +35,22 @@ typedef unsigned int t_ftuint;
typedef long int t_ftlong;
typedef unsigned long int t_ftulong;
-typedef void (*t_ftdel_func)(void*);
-typedef int (*t_ftcompar_func)(const void*, const void*);
+/*
+** \brief Standard delete function
+** \param x Resource to delete
+*/
+
+typedef void (*t_ftdel_func)(void *x);
+
+/*
+** \brief Standard comparison function
+** \param x1 Resource 1
+** \param x2 Resource 2
+** \return negative number if x1 < x2,
+** 0 if x1 == x2,
+** positive number if x1 > x2
+*/
+
+typedef int (*t_ftcompar_func)(const void *x1, const void *x2);
#endif