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 library itself.
getaddrinfo
c.getaddrinfo
pubextern"c"fngetaddrinfo(
noaliasnode: ?[*:0]constu8,
noaliasservice: ?[*:0]constu8,
noaliashints: ?*constaddrinfo,
/// On Linux, `res` will not be modified on error and `freeaddrinfo` will/// potentially crash if you pass it an undefined pointernoaliasres: *?*addrinfo,
) EAI
pubextern"c"fngetaddrinfo(
noaliasnode: ?[*:0]constu8,
noaliasservice: ?[*:0]constu8,
noaliashints: ?*constaddrinfo,
/// On Linux, `res` will not be modified on error and `freeaddrinfo` will/// potentially crash if you pass it an undefined pointernoaliasres: *?*addrinfo,
) EAI