35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* dict_struct.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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 <stdlib.h>
|
|
|
|
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
|