aboutsummaryrefslogtreecommitdiff
path: root/src/defaultIO.zig
blob: 9da4ad2681ad30d093b07bb706c92b9e530e37ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const std = @import("std");

pub const IOErrors = error{
    IOError,
    NotImplemented,
};

pub fn characterInput() IOErrors!i64 {
    // TODO
    return error.NotImplemented;
}

pub fn decimalInput() IOErrors!i64 {
    // TODO
    return error.NotImplemented;
}

pub fn characterOutput(v: i64) IOErrors!void {
    std.debug.print("{c}", .{@intCast(u8, v)});
    return;
}

pub fn decimalOutput(v: i64) IOErrors!void {
    std.debug.print("{d}", .{v});
    return;
}

test "all" {
    std.testing.refAllDecls(@This());
}