shithub: mc

ref: 62ea6ad22c399c646e396efe264c8314f14027a3
dir: /lib/std/slcp.myr/

View raw version
use "die.use"
use "types.use"
use "memops.use"

pkg std =
	generic slcp : (a : @a[:], b : @a[:] -> void)
;;

generic slcp = {a : @a[:], b : @a[:]
	iassert(a.len == b.len, "arguments to slcp() must be of equal length\n")
	memblit(a castto(byte#), b castto(byte#), a.len * sizeof(@a))
}