fn memchr(ptr: *const anyopaque, value: c_int, len: usize) callconv(.c) ?*anyopaque
fn memchr(ptr: *const anyopaque, value: c_int, len: usize) callconv(.c) ?*anyopaque { const bytes: [*]const u8 = @ptrCast(ptr); return @constCast(bytes[std.mem.findScalar(u8, bytes[0..len], @truncate(@as(c_uint, @bitCast(value)))) orelse return null ..]); }