var file_name = [_:0]u8{0} ** 255;
_ = @import("bindings/win32.zig").GetModuleFileNameA(null, &file_name, 255);
const trimmed_file_name = std.mem.trimRight(u8, &file_name, " ");
std.log.info("File name (len {d}): {s}", .{ trimmed_file_name.len, trimmed_file_name });
The trimmed file name is still 255 length and still has null bytes on the right