shithub: mc

ref: d03fc800fc2ad91ee41e05c0145281cd7b11d77d
dir: /libbio/test/bio-unitwr.myr/

View raw version
use std
use bio

const main = {
	var f
	match bio.create("tmpout/test-unitwr", bio.Wr, 0o644)
	| `std.Some bio:	f = bio
	| `std.None:	std.fatal(1, "Unable to open data file")
	;;
	bio.putb(f, 42)
	bio.putc(f, 'ה')
	bio.putb(f, 0xa)
	bio.close(f);
}