shithub: mc

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