Pass a pointer. If you've got C++ enabled,
you might pass a reference (which is really
just a pointer w/ syntactic sugar).
Even if you can pass a complete struct,
you lose out on efficiency w/ all the
copying.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi./sec ... not just a good idea, it's the LAW!
> -----Original Message-----
> From: Fawcett, Mitch [mailto:[EMAIL PROTECTED]]
>
> Sorry for asking a basic programming question on this forum but it is
> relevant that I ask fellow Palm programmers. I have two "C"
> books with
> conflicting information regarding passing a structure as an
> argument in a
> function. One says I can pass an instance of a structure,
> the other says I
> can't and I should pass a pointer instead. I'm having
> problems with some
> code I am writing that involves structures so I would like to get this
> clarified before I go much further.