Demo on the uses of the static reserved word
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
/* Does something to a number. This function is static and
|
||||
* will not be accessible outside of this file. Functions and
|
||||
* variables defined as static are not visible to outside
|
||||
* files. This function is private to this file and can only
|
||||
* be called from within.
|
||||
*/
|
||||
static void do_something(void);
|
||||
|
||||
|
||||
int Number_get_number(void);
|
||||
Reference in New Issue
Block a user