- Code: Select all
int globalVars[9999];
void ResetArray(char *arrayName, int arrayAmmount)
{
int i;
for(i=0;i<arrayAmmount-1;i++)
{
(int)arrayName[i]=0;
}
}
How would I make this work? i want to be able to do something like this:
- Code: Select all
ResetArray("globalVars", 9999);