Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › zig › WindowsSdk › MsvcLibDir › find Public Function find Doc Source Public Function std.zig.WindowsSdk.MsvcLibDir.find
pub fn find (
gpa : Allocator ,
io : Io ,
registry : *Registry ,
arch : std .Target .Cpu .Arch ,
environ_map : *const Environ .Map ,
) error Params File zig/WindowsSdk.zig: 1173
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193 pub fn find (
gpa : Allocator ,
io : Io ,
registry : *Registry ,
arch : std .Target .Cpu .Arch ,
environ_map : *const Environ .Map ,
) error { OutOfMemory , MsvcLibDirNotFound }![]const u8 {
const full_path = MsvcLibDir .findViaCOM (gpa , io , registry , arch , environ_map ) catch |err1 | switch (err1 ) {
error .OutOfMemory => |e | return e ,
error .PathNotFound => MsvcLibDir .findViaRegistry (gpa , io , arch , environ_map ) catch |err2 | switch (err2 ) {
error .OutOfMemory => |e | return e ,
error .PathNotFound => MsvcLibDir .findViaVs7Key (gpa , io , registry , arch , environ_map ) catch |err3 | switch (err3 ) {
error .OutOfMemory => |e | return e ,
error .PathNotFound => return error .MsvcLibDirNotFound ,
},
},
};
errdefer gpa .free (full_path );
return full_path ;
}
Find path to MSVC's
lib/directory. Caller owns the result.