about summary refs log tree commit diff stats
path: root/dev/c/src/basic/basic.h
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-06-26 16:58:13 +0100
committerSilvino <silvino@bk.ru>2019-06-26 16:59:06 +0100
commit2830b5fb96cce787ca8c7562a968effc3e57bdb1 (patch)
treed8f3c09d0b52806ecc97e447655eb99f17a126e8 /dev/c/src/basic/basic.h
parent0e5a601a31840e1531f3f90ca447bf3b1e766d73 (diff)
downloaddoc-2830b5fb96cce787ca8c7562a968effc3e57bdb1.tar.gz
dev index re-organization
Diffstat (limited to 'dev/c/src/basic/basic.h')
-rw-r--r--dev/c/src/basic/basic.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev/c/src/basic/basic.h b/dev/c/src/basic/basic.h
new file mode 100644
index 0000000..6eef13f
--- /dev/null
+++ b/dev/c/src/basic/basic.h
@@ -0,0 +1,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;
+}