diff options
author | pommicket <pommicket@gmail.com> | 2022-01-08 10:17:03 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-01-08 10:17:03 -0500 |
commit | d48816e226d5ba081dadbba4bcded92e5c0a23d1 (patch) | |
tree | e97ee2cdccf4d241ecb4f6c9cdfac771f694feee /04/in04 | |
parent | 5d6b490cce1a99a2541d1fcee101df4331d4d86a (diff) | |
parent | d74f349e27a1ba20bd549362f95915ee6d2dd9d1 (diff) |
merge term stuff
Diffstat (limited to '04/in04')
-rw-r--r-- | 04/in04 | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -15,8 +15,7 @@ function strlen local p p = s :strlen_loop - c = *1p - if c == 0 goto strlen_loop_end + if *1p == 0 goto strlen_loop_end p += 1 goto strlen_loop :strlen_loop_end @@ -24,9 +23,7 @@ function strlen function putc argument c - local p - p = &c - syscall(1, 1, p, 1) + syscall(1, 1, &c, 1) return function puts |