summaryrefslogtreecommitdiff
path: root/lib/std/clear.myr
blob: 6417eecc5531823b7cf690ed1173b54e2855cd6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use "slfill"
pkg std =
	generic clear	: (p : @a#	-> void)
;;

generic clear = {p : @a#
	var bp

	bp = (p : byte#)
	slfill(bp[:sizeof(@a)], 0)
}