summaryrefslogtreecommitdiff
path: root/tnslc/else.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/else.tnsl')
-rw-r--r--tnslc/else.tnsl22
1 files changed, 14 insertions, 8 deletions
diff --git a/tnslc/else.tnsl b/tnslc/else.tnsl
index a87aad3..d2a7c94 100644
--- a/tnslc/else.tnsl
+++ b/tnslc/else.tnsl
@@ -1,13 +1,19 @@
-/; main [int]
+{}uint8 a = "asdf", b = "asdf\0"
- int i = 1
+{}uint8 csv_pr = ",\0"
+/; cstr_len (~void cstr, int add) [int]
+ int i = 0
+ /; loop (cstr{i} !== 0) [i++] ;/
+ return i + add
+;/
- /; if (i == 3)
- i = 1
- ;; else if (i == 1)
- i = 10
- ;/
- return i
+
+/; main (int argc, ~~uint8 argv) [int]
+
+ uint8 bub = 0
+ cstr_len(~b{0}, bub)
+
+ return 0
;/ \ No newline at end of file