shithub: mc

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