35 lines
1.4 KiB
C
35 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_linked_list.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/04/01 15:25:59 by tischmid #+# #+# */
|
|
/* Updated: 2023/04/01 20:58:03 by tischmid ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef FT_LINKED_LIST_H
|
|
# define FT_LINKED_LIST_H
|
|
|
|
typedef struct s_map_entry
|
|
{
|
|
char *key;
|
|
char *value;
|
|
struct s_map_entry *next;
|
|
} t_map_entry;
|
|
|
|
typedef enum e_ll_flag
|
|
{
|
|
POP_NO_RETURN_VAL
|
|
} t_ll_flag;
|
|
|
|
char *ll_map_get(t_map_entry *head, char *key);
|
|
void ll_map_push(t_map_entry *head, char *key, char *value);
|
|
void ll_clear(t_map_entry *head, int free_values);
|
|
t_map_entry *ll_map_new_entry(char *key, char *value);
|
|
t_map_entry *ll_pop_last(t_map_entry *head, t_ll_flag noretval, int free_values);
|
|
|
|
#endif
|