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

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