aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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));
}