Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!uvaarpa!babbage!gnf3e From: gnf3e@babbage.acc.virginia.edu (Greg Fife) Newsgroups: comp.os.minix Subject: Re: A simple question Message-ID: <561@babbage.acc.virginia.edu> Date: 30 Mar 89 14:20:44 GMT References: <11762@louie.udel.EDU> <405@helios.prosys.se> Reply-To: gnf3e@babbage.acc.Virginia.EDU (Greg Fife) Organization: University of Va., Charlottesville, VA Lines: 16 In article <405@helios.prosys.se> ath@helios.prosys.se (Anders Thulin) writes: . . . >(rp - proc) produces the index of rp inside the table proc, that >is rp == proc[rp-proc]. I think you want rp == &(proc[rp-proc]). Rp and proc are pointers, and the construction pointer[index] is the type of what the pointer points to (or, as the Pascal programmer would say, it's the element at that index in an array) ______________________________________________________________________ Greg Fife "A king is but a foolish (804) 924-7743 laborer/ who wastes his blood gnf3e@virgnia.edu to be another's dream."