/* * blackbook header file * * author: hackbard@hackdaworld.org * */ #define MAX_CHARS 64; typedef struct s_category { char name[MAX_CHARS]; } t_category; typedef struct s_transfer { /* date */ int year; int month; int day; t_category category; unsigned char sign; float value; } t_transfer; typedef struct s_account { char name[MAX_CHARS]; int amount_categories; t_category *category; int amount_transfers; t_transfer *transfer; } t_account; typedef struct s_bb { int outfd; t_account account; t_display display; t_event event; t_input input; } t_bb;