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

Reply via email to