/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* dict_struct.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: achubuko +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/03 20:36:01 by achubuko #+# #+# */ /* Updated: 2023/12/03 22:20:58 by achubuko ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef DICT_STRUCT_H # define DICT_STRUCT_H # include typedef struct s_dictitem { unsigned int num_significant; unsigned int num_base; char *text; } t_dictitem; typedef struct s_dict { int size; t_dictitem dict[42]; } t_dict; t_dict *dict_create_default(char *path); void dict_update(t_dict *d, char *path); void dict_destroy(t_dict *dict); void dict_init_default(t_dict *d, char *path); t_dict *dict_create(void); #endif