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 22:30
Read: times


 
#14820 - RE: Passing Arrays?
Hello!

char test(unsigned char *PA)
{
char i, temp=0;

for(i=0;i<9;i++){
temp = temp + *(PA+i);
*(PA+i) = 0;
}
return temp;
}


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

temp = test(&global_array[0]);
}

I think, it should work.
Jacek


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