Thanks you all for the comments. Everything addressed, plus the array vs pointer suggestion from Segher Boessenkool on the other thread, which is only cosmetic and does not change anything wrt behaviour.