about summary refs log tree commit diff stats
path: root/dev/c/src/basic
diff options
context:
space:
mode:
Diffstat (limited to 'dev/c/src/basic')
-rw-r--r--dev/c/src/basic/AUTHORS1
-rw-r--r--dev/c/src/basic/ChangeLog0
-rw-r--r--dev/c/src/basic/Makefile7
-rw-r--r--dev/c/src/basic/NEWS0
-rw-r--r--dev/c/src/basic/README0
-rw-r--r--dev/c/src/basic/basic.c3
-rw-r--r--dev/c/src/basic/basic.h27
7 files changed, 38 insertions, 0 deletions
diff --git a/dev/c/src/basic/AUTHORS b/dev/c/src/basic/AUTHORS
new file mode 100644
index 0000000..dcfefd1
--- /dev/null
+++ b/dev/c/src/basic/AUTHORS
@@ -0,0 +1 @@
+Silvino Silva, silvino at bk dot ru
diff --git a/dev/c/src/basic/ChangeLog b/dev/c/src/basic/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dev/c/src/basic/ChangeLog
diff --git a/dev/c/src/basic/Makefile b/dev/c/src/basic/Makefile
new file mode 100644
index 0000000..f165c15
--- /dev/null
+++ b/dev/c/src/basic/Makefile
@@ -0,0 +1,7 @@
+CC=gcc
+CFLAGS=-Wall
+
+basic-c: main.o basic.o
+
+clean:
+	rm -f *.o basic-c
diff --git a/dev/c/src/basic/NEWS b/dev/c/src/basic/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dev/c/src/basic/NEWS
diff --git a/dev/c/src/basic/README b/dev/c/src/basic/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dev/c/src/basic/README
diff --git a/dev/c/src/basic/basic.c b/dev/c/src/basic/basic.c
new file mode 100644
index 0000000..744b739
--- /dev/null
+++ b/dev/c/src/basic/basic.c
@@ -0,0 +1,3 @@
+#include "basic.h"
+
+
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;
+}