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. Private Function
nullStr
Private Function
std.tar.nullStr
fnnullStr(str: []constu8) []constu8
Breaks string on first null character.
Params
str: []constu8
File
tar.zig:293
293294295296297298
fnnullStr(str: []constu8) []constu8 {
for (str, 0..) |c, i| {
if (c == 0) returnstr[0..i];
}
returnstr;
}
Breaks string on first null character.