memset.ha (140B)
1 export fn memset(dest: *void, val: u8, amt: size) void = { 2 let a = dest: *[*]u8; 3 for (let i = 0z; i < amt; i += 1) { 4 a[i] = val; 5 }; 6 };
harec[hare] Hare compiler, written in C11 for POSIX OSs | |
Log | Files | Refs | README | LICENSE |