From f78b5369d62819f05ab836327eb39ae27965d3ce Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 1 Aug 2020 20:03:17 +0700 Subject: [PATCH] Add menu functions Updated to test util --- tests/o.c | 1 - tests/o.h | 3 --- tests/run | 5 +++-- tests/util.c | 14 ++++++++++++++ tests/work1 | Bin 16920 -> 17184 bytes tests/work1.c | 30 +++++++++++++++++++++++++++--- 6 files changed, 44 insertions(+), 9 deletions(-) delete mode 100644 tests/o.c delete mode 100644 tests/o.h create mode 100644 tests/util.c diff --git a/tests/o.c b/tests/o.c deleted file mode 100644 index ff7ec1b..0000000 --- a/tests/o.c +++ /dev/null @@ -1 +0,0 @@ -#include "" \ No newline at end of file diff --git a/tests/o.h b/tests/o.h deleted file mode 100644 index 073ed55..0000000 --- a/tests/o.h +++ /dev/null @@ -1,3 +0,0 @@ -void print(char *text) -void println(char *text) - diff --git a/tests/run b/tests/run index d47ba96..a75722b 100755 --- a/tests/run +++ b/tests/run @@ -1,4 +1,5 @@ #!/bin/bash -gcc work1.c -o work1 -./work1 \ No newline at end of file +rm -r work1 + +gcc work1.c -o work1 && ./work1 \ No newline at end of file diff --git a/tests/util.c b/tests/util.c new file mode 100644 index 0000000..98b95e2 --- /dev/null +++ b/tests/util.c @@ -0,0 +1,14 @@ +#include "stdio.h" + +void print(char *text) { + printf(text); +} + +void println(char *text) { + newline(); + print(text); +} + +void newline() { + printf("\n"); +} \ No newline at end of file diff --git a/tests/work1 b/tests/work1 index 0fa132451dd383c12013a707e4bbb2f0c160f81a..149aecc55b528842dacc6a425e8224a10710850b 100755 GIT binary patch delta 3327 zcma)9ZERE589vue8rw}8J0#1ehy$Y#+SqZvKS;O+3^yp7ycI*HHg#NL6Hoc@g0m)@ zn9V|HtN=ARjmk7yp{nYF)UH9Pv>;V+7%B$QAN*;>rd3KcRkGBGC2P6`R(kiGdygH6 z)@sMP_c`Zz-uFH4Irp4%uP>YuE}a&l1vz1(NLW$tgj{Mqzw;e^N4i3i4r&rM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