shithub: mc

ref: 1ee90265d5f764cb54b49531c4b247c5f404491c
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)
}