Thank you for the reply,
I did try a pointer but I was still getting the same error. It seems as
though it doesn't understand my structure definition.
----- Original Message -----
From: "Ralf Beckers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 23, 1999 5:23 PM
Subject: Re: Passing structures to new functions
> Hi,
>
> Palm Dev Forum wrote:
> > I am trying to pass a structure that I defined to another function.
When I
> > compile using code warrior it tells me that I have an illegal definition
in
> > my prototype.
> This is not possible.
> Try passing a pointer to that struct. This will work.
>
> something(alpha *alphaP)
> {
> alphaP->b[0] = 'B';
> }
>
> function()
> {
> alpha one;
> Err err = something(&one);
> }
>
> Ralf Beckers
>
>