What does the keyword "static" do in this header file? I have been programming in Pocket Studio (Pascal) and am trying to learn C/C++ so I can use Palm developer as well as understand code examples for ongoing Pocket Studio programs.
Taken from Library example pf Palm OS Programming Bible: library.h /*********************************************************************** * * Function Prototypes * ***********************************************************************/ // General functions static void ChangeCategory (UInt16 category); static Boolean CreateNote(void); static void DeleteRecord (Boolean archive); static void DirtyRecord (UInt16 index); static UInt16 DuplicateCurrentRecord(UInt16 *numCharsToHighlight, Boolean deleteCurrentRecord); All the references that I could find say this simply restricts the use of these functions (as well as variables) to this module (File?). Is this the case? And if so why declare them in a header file at all, not just in the code (*.c) file. In Pascal (Delphi) any function you want as public you declare in the interface section, I have been equating this with Header files. And anything you just declare in the implementation section the *.c file. TIA, Gary -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
