if (!array || index >= array->count) {{ return NULL; }} u8 *ptr = (u8 *)(array->items) + (array->item_size * index); return ({T} *)ptr;