Static Functions in C
Submitted by ravisagar on Sat, 05/10/2008 - 14:14
If you create a function with a keyword static in front of it then that function can only be accessed from the same file. It cannot be called from any other file.
Example: While creating module for Linux Kernel, functions are normally declared as static, so there is no conflict with other modules that may have functions with the same name.
static function_name()
{
int bla; bla; bla;
}
{
int bla; bla; bla;
}
Tags:
- ravisagar's blog
- 7536 reads





Comments
your explanation is not complete
can u provide complete explanation
Post new comment