> > So sorry for this coming novice question, how do you declare global > variables as I'm writing a few"C" files. I'm not too sure when will the > variable cease to exsist. Is it possible to declare a variable that > exist throught the lifespan of the program using CodeWarrior 7 ? >
Try this - in one .c file put your global at the top: UInt foo = 0; in another .c file where you want to access foo, put this at the top: extern UInt foo; -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
