aboutsummaryrefslogtreecommitdiff
path: root/src/defaultIO.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-06-09 23:17:53 +0200
committerJulien Dessaux2022-06-09 23:18:27 +0200
commit75fc1506e59c1eaa52971d20df72c7cbeca5ac82 (patch)
tree09ac84d955f9fc1f7c8bc5a11415f765296de42b /src/defaultIO.zig
parentAdded submodules for the spec and the mycology test suite (diff)
downloadzigfunge98-75fc1506e59c1eaa52971d20df72c7cbeca5ac82.tar.gz
zigfunge98-75fc1506e59c1eaa52971d20df72c7cbeca5ac82.tar.bz2
zigfunge98-75fc1506e59c1eaa52971d20df72c7cbeca5ac82.zip
Pass the sanity test
Diffstat (limited to 'src/defaultIO.zig')
-rw-r--r--src/defaultIO.zig10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/defaultIO.zig b/src/defaultIO.zig
index b87c2d6..9da4ad2 100644
--- a/src/defaultIO.zig
+++ b/src/defaultIO.zig
@@ -16,15 +16,13 @@ pub fn decimalInput() IOErrors!i64 {
}
pub fn characterOutput(v: i64) IOErrors!void {
- // TODO
- _ = v;
- return error.NotImplemented;
+ std.debug.print("{c}", .{@intCast(u8, v)});
+ return;
}
pub fn decimalOutput(v: i64) IOErrors!void {
- // TODO
- _ = v;
- return error.NotImplemented;
+ std.debug.print("{d}", .{v});
+ return;
}
test "all" {