fn nullStr(str: []const u8) []const u8
fn nullStr(str: []const u8) []const u8 { for (str, 0..) |c, i| { if (c == 0) return str[0..i]; } return str; }