shithub: mc

ref: 2002d2fa999d7efeb71aa64a32a1a87c2f4b8399
dir: /lib/bio/test/bio-unitwr.myr/

View raw version
use std
use bio

const main = {
	var f

	std.mkpath("tmpout")
	match bio.create("tmpout/test-unitwr", bio.Wr, 0o644)
	| `std.Ok bio:	f = bio
	| `std.Err m:	std.fatal("Unable to open data file: {}\n", m)
	;;
	bio.putb(f, 42)
	bio.putc(f, 'ה')
	bio.putb(f, 0xa)
	bio.close(f);
}