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
Aleksei Chubukov 9d56f17870 overtime
2023-12-07 20:07:15 +04:00

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);
}