shithub: mc

ref: 3de36cf522da6e8fdb102fb1169465cbbabb3df4
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)
}