aboutsummaryrefslogtreecommitdiff
path: root/src/blog/2024-09-20-c-scripting/script.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-20 14:26:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-20 14:26:43 +0200
commitf0b6a7f1c683446651b72ef9a968b90f548a42b2 (patch)
tree458f7bb3d1275cd444f067e88bc65ae019b4cca3 /src/blog/2024-09-20-c-scripting/script.c
parent480851093e36799c4ccfaddf68d34819175377f7 (diff)
downloadsebastiano.tronto.net-f0b6a7f1c683446651b72ef9a968b90f548a42b2.tar.gz
sebastiano.tronto.net-f0b6a7f1c683446651b72ef9a968b90f548a42b2.zip
new blog post
Diffstat (limited to 'src/blog/2024-09-20-c-scripting/script.c')
-rwxr-xr-xsrc/blog/2024-09-20-c-scripting/script.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/blog/2024-09-20-c-scripting/script.c b/src/blog/2024-09-20-c-scripting/script.c
new file mode 100755
index 0000000..de57959
--- /dev/null
+++ b/src/blog/2024-09-20-c-scripting/script.c
@@ -0,0 +1,15 @@
1#if 0
2
3bin="$(mktemp)"
4cc -o "$bin" "$(realpath $0)"
5"$bin"
6
7exit 0
8#endif
9
10#include <stdio.h>
11
12int main() {
13 printf("Hello, world!\n");
14 return 0;
15}

Generated with cgit - Back to sebastiano.tronto.net