2024-02-20 19:55:42 -06:00

15 lines
352 B
Plaintext

const std = #import("std");
const print = std.print;
const main = fn() s32 {
var buffer: [std.os.max_path_byte_count:0]u8 = undefined;
if (std.os.current_executable_path(buffer = buffer.&)) |bytes| {
print(bytes);
print(bytes = "\n");
return 0;
} else {
print(bytes = "Failed\n");
return 1;
}
}