~sircmpwn/hare

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