我对 Zig 很陌生,我想获取我的机器的主机名。 Zig 中有一个
std.os.gethostname()
有一个
std.c.gethostname()
libc
我终于找到了
std.posix.gethostname()
std.os
std.posix