I have a number of int arrays that I need to push to the eeprom on an uno. What I'd like to do is reuse the array for each set without having to loop through each slot in the array...
int CodeStore[] = {320,760,280,1620,260,680,[...],740,200}; // <- 71 int's
for(int i = 0; i < 71; i++){
EEPROM_Store(i*2,CodeStore[i]); }
Now I have, say, 10 more sets of int's (71 int's per set) that I'd like to repopulate CodeStore with. Thoughts?
*Edit - I should mention, the int's, number of sets, etc. are just examples here... I hope it works for that without confusing the question at hand. 
search for memcpy() it is available in arduinish,
Think it is somewhere in one of the libs here- avr-libc: Modules
So, you have 10 sets of 71 ints, at 2 bytes per int, that you are going to store in the 1024 bytes of EEPROM on the UNO.
Good luck with that.
@PaulS - As I mentioned at the bottom of the first post, the numbers are really for that example. I picked larger numbers to illustrate that replacing each one in the array wasn't practical.
As a follow-up on the memcpy() route: It doesn't look like there's any way to do this without creating a new, second array... which was something I was trying to avoid.
For now I'm just going to bang segments out manually. I'm sure that's the worst way to do it, but eventually you've just got to get the job done. XD
If anyone has another recommendation I'd love to hear it, if only for the next time I run into something like this!
Hmm, I may not be getting the problem. If you want to write the whole thing to EEPROM without iterating, use eeprom_write_block.
int CodeStore[] = {320,760,280,1620,260,680,[...],740,200}; // <- 71 int's
eeprom_write_block(CodeStore,0,sizeof(CodeStore));
What do you mean "re-use the array"? Where else would your next 71 ints come from?