From 5204a53d16b9f496be805b69ae1435646b9931a7 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Mon, 4 Sep 2023 09:31:44 +0200 Subject: [PATCH] Hello world for C. --- src/hello/hello.c | 12 ++++++++++++ src/hello/hello.stinkr | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 src/hello/hello.c create mode 100644 src/hello/hello.stinkr diff --git a/src/hello/hello.c b/src/hello/hello.c new file mode 100644 index 00000000..28e0ee83 --- /dev/null +++ b/src/hello/hello.c @@ -0,0 +1,12 @@ +/* Hello world for the C programming language. */ + +/* To compile and link, type: + :cwd hello + :cc hello.c + :stinkr hello */ + +int main() +{ + cprint("Hello world\n"); + return 0; +} diff --git a/src/hello/hello.stinkr b/src/hello/hello.stinkr new file mode 100644 index 00000000..3c9d0c56 --- /dev/null +++ b/src/hello/hello.stinkr @@ -0,0 +1,3 @@ +x c/clib +l hello.stk +o ts.hello