Skip to content

IO

Source: std/io.mw.

Everything here writes straight to file descriptors 1 and 2 through the platform layer; there is no buffering.

Console output on top of raw write(2): no libc, no buffering.

fn print(s: *u8)
fn println(s: *u8)
fn eprint(s: *u8)
fn eprintln(s: *u8)
fn print_char(c: u8)
fn print_i64(n: i64)
fn println_i64(n: i64)
fn print_u64(n: u64)
fn println_u64(n: u64)
fn print_hex(n: u64)
fn print_f64(x: f64, decimals: i64)
fn println_f64(x: f64, decimals: i64)