From aa9613efb6fb39bd96fc4836b5d38c3746af1b15 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 10:36:49 +0100 Subject: hash table draft --- src/ht/ft_inter_htkey_equal.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ht/ft_inter_htkey_equal.c (limited to 'src/ht/ft_inter_htkey_equal.c') diff --git a/src/ht/ft_inter_htkey_equal.c b/src/ht/ft_inter_htkey_equal.c new file mode 100644 index 0000000..b652bba --- /dev/null +++ b/src/ht/ft_inter_htkey_equal.c @@ -0,0 +1,20 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_internal_htkey_equal.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/30 09:24:39 by cacharle #+# #+# */ +/* Updated: 2020/01/30 09:25:36 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +t_ftbool ft_inter_htkey_equal(char *ref_key, t_ftht_content *content) +{ + if (ref_key == NULL || content == NULL) + return (FALSE); + return (ft_strcmp(ref_key, content->key) == 0) +} -- cgit