~sircmpwn/hare

hare/rt/memcpy.ha -rw-r--r-- 161 bytes
ea90e6dfEyal Sawady unix::umask: don't return an error 10 hours ago
                                                                                
1
2
3
4
5
6
export fn memcpy(dest: *void, src: *void, amt: size) void = {
	let a = dest: *[*]u8, b = src: *[*]u8;
	for (let i = 0z; i < amt; i += 1) {
		a[i] = b[i];
	};
};