mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
17 lines
414 B
Zig
17 lines
414 B
Zig
extern "c" fn write(c_int, usize, usize) usize;
|
|
|
|
pub fn main() void {
|
|
print();
|
|
}
|
|
|
|
fn print() void {
|
|
const msg = @intFromPtr("What is up? This is a longer message that will force the data to be relocated in virtual address space.\n");
|
|
const len = 104;
|
|
_ = write(1, msg, len);
|
|
}
|
|
|
|
// run
|
|
//
|
|
// What is up? This is a longer message that will force the data to be relocated in virtual address space.
|
|
//
|