David Gonzalez Martin 3074411608 Introduce file writer
2023-12-02 08:51:32 -06:00

14 lines
316 B
Plaintext

const std = #import("std");
const print = std.print;
const main = fn () s32 {
if (std.os.current_executable_path(allocator = std.page_allocator.allocator.&)) |bytes| {
print(bytes);
print(bytes = "\n");
return 0;
} else {
print(bytes = "Failed\n");
return 1;
}
}