I have an array of offsets, each element of which points to an element of the actual data I want to read.
Here's some pseudocode:
u32 count = read_u32()
u32 offsets[count]
for i in 0..count:
offsets[i] = read_u32()
data_t data[count]
for i in 0..count:
fseek(offsets[i])
data[i] = read_data_t()
I've tried making an array of pointers, but either there's no syntax for that, or I'm doing it wrong.