This repository has been archived on 2023-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
c_piscine_rush_02/ex00/dict_struct.c

40 lines
1.2 KiB
C
Raw Permalink Normal View History

2023-12-07 16:07:15 +00:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* dict_struct.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/03 20:35:11 by achubuko #+# #+# */
/* Updated: 2023/12/03 23:07:41 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
#include "dict_struct.h"
t_dict *dict_create(void)
{
t_dict *d;
d = malloc(sizeof(t_dict));
d->size = 0;
return (d);
}
void dict_destroy(t_dict *dict)
{
free(dict);
}
void dict_update(t_dict *d, char *path)
{
}
t_dict *dict_create_default(char *path)
{
t_dict *d;
d = dict_create();
dict_update(d, path);
return (d);
}