diff options
| author | 2022-08-23 10:21:19 +0200 | |
|---|---|---|
| committer | 2022-08-23 10:21:19 +0200 | |
| commit | 039ab20bbf6b68c423f420be2481b447d85c606b (patch) | |
| tree | b3443baf8990c14e54332a4ee5844765256f4d59 /examples/hello-world.cff | |
| parent | 09ea9f98e696235bf637c1df723d5796b4c9d185 (diff) | |
collatz!
Diffstat (limited to 'examples/hello-world.cff')
| -rw-r--r-- | examples/hello-world.cff | 3 |
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)); } |