From 039ab20bbf6b68c423f420be2481b447d85c606b Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 23 Aug 2022 10:21:19 +0200 Subject: collatz! --- examples/hello-world.cff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/hello-world.cff') 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)); } -- cgit v1.2.3