TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: C Casts
from: Bob van der Poel 76510,2203
date: 1992-11-21 15:53:59
subject: #12

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.