shithub: mc

ref: 0dd5d1f71505ce3d8a51e8244cf3128c54eb8293
dir: /lib/bio/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.Ok bio:	f = bio
	| `std.Fail m:	std.fatal("Unable to open data file: {}\n", m)
	;;
	bio.putb(f, 42)
	bio.putc(f, 'ה')
	bio.putb(f, 0xa)
	bio.close(f);
}