How to access a function only in a given file, in a C program?
Define function with in a function.
Use static function.
Use private function.
Create a function and put its prototype in header file.
use static functions. they can't be accessed by out side files directly. Also make sure that you are not giving the address of that static function to any one outside.
Back To Top