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