aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htcontent_new.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-02 11:05:33 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-02 11:05:33 +0200
commit5d2f925b20ceaea4122c59d2d2c4e7d4ae991fde (patch)
tree80911dc3c32e9f230750e7e1042d413dfb6efab2 /src/ht/ft_htcontent_new.c
parentee32953ea79616e72f5428cdf40c834714a891c9 (diff)
parentb96b82194ccad2cddbb46b77aa1962a57c47ff44 (diff)
downloadlibft-5d2f925b20ceaea4122c59d2d2c4e7d4ae991fde.tar.gz
libft-5d2f925b20ceaea4122c59d2d2c4e7d4ae991fde.tar.bz2
libft-5d2f925b20ceaea4122c59d2d2c4e7d4ae991fde.zip
Merge branch 'master' into ft_ssl
Diffstat (limited to 'src/ht/ft_htcontent_new.c')
-rw-r--r--src/ht/ft_htcontent_new.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/ht/ft_htcontent_new.c b/src/ht/ft_htcontent_new.c
deleted file mode 100644
index 214e125..0000000
--- a/src/ht/ft_htcontent_new.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_htcontent_new.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/30 08:45:36 by cacharle #+# #+# */
-/* Updated: 2020/02/17 04:09:50 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-#include "libft_ht.h"
-
-t_ftht_content *ft_htcontent_new(char *key, void *value)
-{
- t_ftht_content *content;
-
- if (key == NULL)
- return (NULL);
- if ((content = (t_ftht_content*)malloc(sizeof(t_ftht_content))) == NULL)
- return (NULL);
- if ((content->key = ft_strdup(key)) == NULL)
- {
- free(content);
- return (NULL);
- }
- content->value = value;
- return (content);
-}