Danny,

Just exactly what would my ".h" file look like?  I haven't ever done that
type of thing...

I guess my ignorance in the 'c' programming arena is showing....

Very truly yours,

Rob G.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Danny
Epstein
Sent: Monday, May 08, 2000 11:33 AM
To: Palm Developer Forum
Subject: Re: Multi-segment app


"Rob Graber" <[EMAIL PROTECTED]> wrote in message
news:10781@palm-dev-forum...
> In segment 1:
>
> static Boolean mymainfunc(CharPtr myString)
> {
>
> extern Int mysecondfunc(CharPtr SomeString);

It's a good idea, but not strictly necessary, to move this to a .h file
included by both of your .c files.

> Int x;
>
> x = mysecondfunc(myString);
>
> if (x>1)
> return true;
> else
> return false;
>
> }
>
> In segment 2:
>
> static Int mysecondfunc(CharPtr SomeString)

You don't want "static" here.

> {
> if (SomeString[0] != 'A')
> return 1;
> else
> return 2;
>
> }



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to