shithub: mc

ref: 19d7fac9e6210af527ee1e72de4878d3951c41f6
dir: /lib/std/clear.myr/

View raw version
use "slfill.use"
pkg std =
	generic clear	: (p : @a#	-> void)
;;

generic clear = {p : @a#
	var bp

	bp = p castto(byte#)
	slfill(bp[:sizeof(@a)], 0)
}