diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-29 16:55:01 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-29 16:55:01 -0400 |
commit | 606ab9da9e4231564c91e4613bfbbb8883f7eb9d (patch) | |
tree | 2be0ef587d12aa11f863b4e48c388d988a665a9f /tnslc/utils/algo.tnsl | |
parent | c4638488d9a73df832542e40204f56c7d7d179e2 (diff) |
File read test
Diffstat (limited to 'tnslc/utils/algo.tnsl')
-rw-r--r-- | tnslc/utils/algo.tnsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tnslc/utils/algo.tnsl b/tnslc/utils/algo.tnsl new file mode 100644 index 0000000..c501e35 --- /dev/null +++ b/tnslc/utils/algo.tnsl @@ -0,0 +1,10 @@ + +/; strcmp(~uint8 a, b) [bool] + /; loop (a` == b` && a` !== 0 && b` !== 0) [a++; b++] ;/ + + /; if (b` == 0 && a` == 0) + return true + ;/ + return false +;/ + |