"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/

Reply via email to