shithub: mc

ref: 1c61d05cba15d7e93d3207d4f3ab3c6043d63b77
dir: /lib/std/clear.myr/

View raw version
use "slfill"
pkg std =
	generic clear	: (p : @a#	-> void)
;;

generic clear = {p : @a#
	var bp

	bp = (p : byte#)
	slfill(bp[:sizeof(@a)], 0)
}