Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/07/01 21:24
Read: times


 
#14816 - Passing Arrays?
Hey Everyone,
I am write a C and Assembly function that needs to have a large array passed into it and be able to edit the arrray inside the C and Assembly function. Can Someone give me an example of each or just correct the C function below.

The Function looks like this!

char test(unsigned char idata *array[]){
char i, temp;
temp = 0;
i = 0;

for(i=0;i<9;i++){
temp = temp + *aray[i];
*aray[i] = 0;
}
return temp;
}

and I call it like this

unsigned char idata global_array[] = {1,2,3,4,5,6,7,8,9,10};
main(){

temp = test(&global_array[]);

}


List of 4 messages in thread
TopicAuthorDate
Passing Arrays?            01/01/70 00:00      
RE: Passing Arrays?            01/01/70 00:00      
RE: Passing Arrays?            01/01/70 00:00      
RE: Passing Arrays?            01/01/70 00:00      

Back to Subject List