Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!uw-june!wolf.cs.washington.edu!slh From: slh@wolf.cs.washington.edu (Scott Heyano) Newsgroups: comp.lang.c Subject: Re: trouble with structures and callbacks Message-ID: <13840@june.cs.washington.edu> Date: 24 Nov 90 01:17:20 GMT References: <2450@kiwi.mpr.ca> <13837@june.cs.washington.edu> <1990Nov23.231941.14801@thyme.jpl.nasa.gov> Sender: news@cs.washington.edu Reply-To: slh@wolf.cs.washington.edu (Scott Heyano) Organization: Computer Science & Engineering, U. of Washington, Seattle Lines: 16 In article <1990Nov23.231941.14801@thyme.jpl.nasa.gov> kaleb@thyme.jpl.nasa.gov (Kaleb Keithley ) writes: ||In article <2450@kiwi.mpr.ca> baker@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.