shithub: mc

ref: 68a437bb6d370781e18ad1b794cc34c21dd5b361
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)
}