Mail Archives: djgpp/1997/10/26/21:47:06
Brett Kosinski wrote:
> Actually, I believe this is correct. Are you sure you are malloc'ing
> the
> pointers before trying to access them?
Yes, it's correct.
> *tiledata[ptrNum][dataNum].dat <-- you have to dereference the
> pointer.
This is incorrect. . has higher precedence than *, so this is
syntactically wrong. What you meant is
(*titledata[ptrNum][dataNum]).dat,
or more appropriately,
titledata[ptrNum][dataNum]->dat,
which is what the -> operator is for.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"After each war there is a little / less democracy to save."
/ Brooks Atkinson
- Raw text -