Hi Folks
Im rusty on my pointer passing
I would like to pas an array (or pointer thereof) to a function, for use within that function.
I cant remember the correct syntax, if somebody could help me out, that'd be FAB
heres where I am at
int main (void) {
BYTE arrayOfByte[]
BYTE *ptrToArray = &arrayOfByte;
...
someFunc(*ptrToArray);
...
return 0;
}
void someFunc (BYTE *foo) {
*foo[3] = 0xFF; //put FF into arrayOFByte[3]
return 0;
}