shithub: mc

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