From 435fec311c0c5173ae99c32b8f4e6431bd1e43d2 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 4 Feb 2020 03:39:35 +0100 Subject: Added ft_abs --- libft.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libft.h') diff --git a/libft.h b/libft.h index f84c16e..4f8f04e 100644 --- a/libft.h +++ b/libft.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 09:45:02 by cacharle #+# #+# */ -/* Updated: 2020/02/02 22:09:47 by cacharle ### ########.fr */ +/* Updated: 2020/02/04 03:33:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -107,16 +107,18 @@ t_list *ft_lstmap(t_list *lst, void *(*f)(void *), typedef struct { - int lo; - int hi; -} t_ftrange; + int lo; + int hi; +} t_ftrange; -typedef int (*t_ftcompar_func)(const void*, const void*); +typedef int (*t_ftcompar_func)(const void*, const void*); -t_bool ft_is_set(void *base, size_t nel, size_t width, +t_bool ft_is_set(void *base, size_t nel, size_t width, t_ftcompar_func compar); -void ft_qsort(void *base, size_t nel, size_t width, +void ft_qsort(void *base, size_t nel, size_t width, t_ftcompar_func compar); -int ft_compar_int(const void *a, const void *b); +int ft_compar_int(const void *a, const void *b); + +int ft_abs(int i); #endif -- cgit