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
- Passing structures to new functions Palm Dev Forum
- Re: Passing structures to new functions Ralf Beckers
- Re: Passing structures to new functions Palm Dev Forum
- Re: Passing structures to new functions krollin
- Re: Passing structures to new functions Palm Dev Forum
- Re: Passing structures to new functions Aaron Ardiri
- Re: Passing structures to new functions Palm Dev Forum
- Re: Passing structures to new functions Mark Nudelman
- Re: Passing structures to new functions Steve Sabram
- Re: Passing structures to new functions Aaron Ardiri
- Re: Passing structures to new functions Steve Sabram
- Re: Passing structures to new functions Aaron Ardiri
