mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 06:04:46 +01:00
12 lines
297 B
Zig
12 lines
297 B
Zig
const std = @import("std");
|
|
|
|
pub fn main(init: std.process.Init) !void {
|
|
const preopens = try std.fs.wasi.preopensAlloc(init.arena.allocator());
|
|
|
|
for (preopens.names, 0..) |preopen, i| {
|
|
std.debug.print("{d}: {s}\n", .{ i, preopen });
|
|
}
|
|
}
|
|
|
|
// exe=succeed
|
|
// target=wasm32-wasi
|