At 23:30 2002-11-23 -0800, you wrote:
I'm writing an application for the PalmOS and I notice all the sample code
seems to use a "static" qualifier on all the function declarations. What is
the reason for this? Do I need to do this for all functions, or is it for
callback functions and the like?

examples:
static int     StartApplication(void);
static void    EventLoop(void);
static Boolean OpenDatabase(void);
See my article at http://www.palmoswerks.com/stories/storyReader$7.

In short, the "static" keywords are used to keep CodeWarrior from complaining about the lack of prototypes for these functions.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


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

Reply via email to