shithub: mc

ref: 98972288339fd5d5f6466557e704f3737eab3c67
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)
}