2024-01-26 23:45:02 +01:00

15 lines
354 B
Plaintext

const std = #import("std");
const print = std.print;
const main = fn() s32 {
var buffer: [std.os.max_path_byte_count + 1]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;
}
}