diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-08-09 06:11:47 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-08-09 06:11:47 +0330 |
commit | 12b45f728905863adb2e727d6c9c406374675bea (patch) | |
tree | f05a3a9ec2d846e4c94de334e2d42b80c4daae5c /code/lib | |
parent | 40881a903e00939b647cd85beeacfb8a68b31e6a (diff) |
Diffstat (limited to 'code/lib')
-rw-r--r-- | code/lib/io.felan | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/code/lib/io.felan b/code/lib/io.felan index d470331..daca38e 100644 --- a/code/lib/io.felan +++ b/code/lib/io.felan @@ -18,6 +18,14 @@ print_char :: (value:u8) -> void { putchar(@cast(value,i32)); }; +print :: (value:[]u8) -> void { + i := 0u64; + while i < value.length { + print_char(value[i]); + i += 1u64; + } +}; + print :: (value:i8) -> void { _print_signed(@type_of(value),value); }; |