Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!umnd-cs!umn-cs!hyper!mark From: mark@hyper.UUCP (Mark Mendel) Newsgroups: comp.sys.mac Subject: Re: Passing EventRecords to DA's in LSC Message-ID: <259@hyper.UUCP> Date: Thu, 14-May-87 10:31:28 EDT Article-I.D.: hyper.259 Posted: Thu May 14 10:31:28 1987 Date-Received: Sat, 16-May-87 12:05:37 EDT References: <7383@boring.mcvax.cwi.nl> Organization: Network Systems Corp., Mpls. MN Lines: 16 Apparently, p->csParam is declared as an array of shorts. There is, however, a clearer way to get an EventRecord pointer out of this: *(EventRecord **)&p->csParam is slightly clearer than (EventRecord *) * (long *) &p->csParam and should do the same thing. You have to use the '&' operator, since otherwise p->csParam will extract a 16 bit quantity. -- Mark G. Mendel, ihnp4!umn-cs!hyper!mark, Network Systems Corporation All opinions expressed herein, even the most arbitrary, are defended by my employer with religious fervor.