#: 17141 S12/OS9/68000 (OSK)
21-Nov-92 15:53:59
Sb: #12
Fm: Bob van der Poel 76510,2203
To: C Casts
Can one of the wizards help me out? I have some code which sort of looks like:
#define KEYS 26
int (*indexes)[KEYS2];
char *p;
foo()
{
.... assign p to an offset into a memory module ...
.... now set the indexes array pointer ....
indexes=p;
....
}
I need to cast p to the type of indexes. Nothing I try seems to work. I thought
that "indexes=(int**)p" would work...
Someone got the answer?
There are 3 Replies.
|