shithub: mc

ref: 58f59a52b75a9bd3d1be9ae6f4532f5949e45896
dir: /libstd/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)
}