about summary refs log tree commit diff stats
path: root/dev/c/src/basic/basic.h
blob: 6eef13f9539c3c279131f5f7fd2d116cb5c7f7e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
enum operations{deposit, redraw}

union u_account {
    int id;
    int value;
    char *client_name;
    int *log_head;
    union u_account *next;
}

struct s_accounts {
    int total_accounts;
    int total_value;
    union u_account *head_account;
}

struct s_operation {
    int time, amount;
    enum operations op;
    struct s_operation *next;
}

struct s_log {
    int number;
    struct s_operation *operation;
    struct s_log *next;
}