aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-23 10:21:19 +0200
committerlemon <lsof@mailbox.org>2022-08-23 10:21:19 +0200
commit039ab20bbf6b68c423f420be2481b447d85c606b (patch)
treeb3443baf8990c14e54332a4ee5844765256f4d59 /examples
parent09ea9f98e696235bf637c1df723d5796b4c9d185 (diff)
collatz!
Diffstat (limited to 'examples')
-rw-r--r--examples/hello-world.cff3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hello-world.cff b/examples/hello-world.cff
index fca5817..998b5c2 100644
--- a/examples/hello-world.cff
+++ b/examples/hello-world.cff
@@ -1,6 +1,7 @@
import "libc.hff";
extern fn main(argc int, argv **u8) int {
- printf("hello %d", argc + 42);
+ argc += 1;
+ printf("hello %d %s\n", argc, *((argv + 2) - 1));
}