shithub: mc

ref: 03bf16f1492a7bb4b01fad3d1424f9f185788b0b
dir: /lib/std/clear.myr/

View raw version
use "slfill.use"
pkg std =
	generic clear	: (p : @a#	-> void)
;;

generic clear = {p : @a#
	var bp

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