shithub: mc

ref: 535fc2200adec1ee488de3f496781017fb1b55b2
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 castto(byte#)
	slfill(bp[:sizeof(@a)], 0)
}