From dc041e41fd16989f366430781032cfc3bae68c02 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 17 Nov 2023 19:36:10 -0700 Subject: [PATCH] I REMEMBER --- .gitignore | 2 ++ c.d/helloworld.c | 5 +++++ c.d/helloworld.h | 1 + c.d/run.sh | 8 ++++++++ 4 files changed, 16 insertions(+) create mode 100644 c.d/helloworld.c create mode 100644 c.d/helloworld.h create mode 100644 c.d/run.sh diff --git a/.gitignore b/.gitignore index 78fd378..34e4a67 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ **/*.sw* +**/*.gch +**/a.out diff --git a/c.d/helloworld.c b/c.d/helloworld.c new file mode 100644 index 0000000..0a8f557 --- /dev/null +++ b/c.d/helloworld.c @@ -0,0 +1,5 @@ +#include "helloworld.h" + +void main() { + printf("hello world\n"); +} diff --git a/c.d/helloworld.h b/c.d/helloworld.h new file mode 100644 index 0000000..53c5fdf --- /dev/null +++ b/c.d/helloworld.h @@ -0,0 +1 @@ +#include diff --git a/c.d/run.sh b/c.d/run.sh new file mode 100644 index 0000000..80e39ba --- /dev/null +++ b/c.d/run.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +set -e +set -o pipefail +set -u + +gcc ./*.{h,c} +./a.out