summaryrefslogtreecommitdiff
path: root/lib/std/clear.myr
blob: 0f77bef7c770dc1cca6130a0aba0ea1768806d8e (plain)
1
2
3
4
5
6
7
8
9
10
use "memops"

pkg std =
	generic clear	: (p : @a#	-> void)
;;

generic clear = {p : @a#
	memfill((p : byte#), 0, sizeof(@a))
}