diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-20 14:26:43 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-20 14:26:43 +0200 |
| commit | f0b6a7f1c683446651b72ef9a968b90f548a42b2 (patch) | |
| tree | 458f7bb3d1275cd444f067e88bc65ae019b4cca3 /src/blog/2024-09-20-c-scripting/script.c | |
| parent | 480851093e36799c4ccfaddf68d34819175377f7 (diff) | |
| download | sebastiano.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-x | src/blog/2024-09-20-c-scripting/script.c | 15 |
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 | |||
| 3 | bin="$(mktemp)" | ||
| 4 | cc -o "$bin" "$(realpath $0)" | ||
| 5 | "$bin" | ||
| 6 | |||
| 7 | exit 0 | ||
| 8 | #endif | ||
| 9 | |||
| 10 | #include <stdio.h> | ||
| 11 | |||
| 12 | int main() { | ||
| 13 | printf("Hello, world!\n"); | ||
| 14 | return 0; | ||
| 15 | } | ||
