trouble with structures and callbacks

Scott Heyano slh at wolf.cs.washington.edu
Sat Nov 24 12:17:20 AEST 1990


In article <1990Nov23.231941.14801 at thyme.jpl.nasa.gov> kaleb at thyme.jpl.nasa.gov (Kaleb Keithley	) writes:
||In article <2450 at kiwi.mpr.ca> baker at mprgate.mpr.ca (Sue Baker) writes:
||	DAMNIT, you can only pass the POINTER TO THE STRUCTURE,
||	NOT the actual structure.
||	So only the first 32-bits are passed, in this case
|
|No, I don't think so.  K&R1 says you can.  Just because you might
|not ordinarily want to.  Just because in this case it is definitely
|wrong.  Doesn't make it *always* wrong.

	No, not C won't let you do it, but Xt won't let you do it.
	The parameter must be of type caddr_t, usually 32-bits.
	I got a little annoyed because someone else asked essentially
	the same question here just recently.
	By the way, I think you missed a level of quoting on your
	quote attribution.



More information about the Comp.lang.c mailing list