- Code: Select all
void
gameArraysReset()
{
int i;
for(i=0;i<258;i++)
{
gameArrays[i]=NULL;
}
}
This should work, now once you execute the command gameArraysReset(); you should be able to reset every value in the array.
Note:
The name of the function is the same as the variable array. gameArraysReset is designed to reset that specific array.