shithub: mc

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