40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* 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);
|
||
|
}
|