summaryrefslogtreecommitdiff
path: root/tnslc/else.tnsl
blob: d2a7c94758110b886dfa246434e2c490829a74d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{}uint8 a = "asdf", b = "asdf\0"

{}uint8 csv_pr = ",\0"

/; cstr_len (~void cstr, int add) [int]
    int i = 0
    /; loop (cstr{i} !== 0) [i++] ;/
    return i + add
;/



/; main (int argc, ~~uint8 argv) [int]

    uint8 bub = 0
    cstr_len(~b{0}, bub)

    return 0
;/