| ??? 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 |
| Topic | Author | Date |
| 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 |



