shithub: mc

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