diff options
Diffstat (limited to 'tnslc/main.tnsl')
-rw-r--r-- | tnslc/main.tnsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tnslc/main.tnsl b/tnslc/main.tnsl new file mode 100644 index 0000000..1abedb3 --- /dev/null +++ b/tnslc/main.tnsl @@ -0,0 +1,14 @@ +:import "c_wrap_linux.tnsl" + +~uint8 str_a = "Hello World\n\0" +~uint8 str_b = "!\n\0" + +/; main (int argc, ~~uint8 argv) [int] + _printf(str_a) + + /; if (argc > 2) + _printf(str_b) + ;/ + + return 0 +;/ |