I have an array of 1500 elements that gets gradually filled with code before eventually being written to SD card. Unfortunately the 1500 is intentionally too large as i only expect around 1300 events to fill the array (inderterminate amount between 1250 and 1350).
What i need to do is set the array to all zeros after the write to SD such that when it gets filled again if less elements than last time get filled then when it writes out the array i get the last few results from the previous enrties.
So i know i could loop through the array and set each element to zero but that seems inefficient. Can anyone suggest a way to blank the array please?