aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world.cff
blob: ba16752aa69fdff9f5eeea578713f86d8df3fb01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import "libc.hff";

extern fn main(argc int, argv **u8) int {
   let it = *argv = "hi";
   argv[42] - 3;
   while argc > 0 {
      argc = argc - 1;
   }

   printf("hello %d", argc + 42,
   argc < 1 ? argv : #null,
   *argv
   );
}