about summary refs log tree commit diff stats
path: root/dev/c/src
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
parent0e5a601a31840e1531f3f90ca447bf3b1e766d73 (diff)
downloaddoc-2830b5fb96cce787ca8c7562a968effc3e57bdb1.tar.gz
dev index re-organization
Diffstat (limited to 'dev/c/src')
-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
-rw-r--r--dev/c/src/hello/Makefile7
-rw-r--r--dev/c/src/hello/hello.c6
9 files changed, 51 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;
+}
diff --git a/dev/c/src/hello/Makefile b/dev/c/src/hello/Makefile
new file mode 100644
index 0000000..a6d9f07
--- /dev/null
+++ b/dev/c/src/hello/Makefile
@@ -0,0 +1,7 @@
+CC=gcc
+CFLAGS=-Wall
+
+hello: hello.o
+
+clean:
+	rm -f *.o hello
diff --git a/dev/c/src/hello/hello.c b/dev/c/src/hello/hello.c
new file mode 100644
index 0000000..df66493
--- /dev/null
+++ b/dev/c/src/hello/hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+    printf("hello World!");
+    return 0;
+}