Re: how to use static function defined in one file in another file is that impposiible in 'c '
- From: msigwald@xxxxxxxxx
- Date: 29 Apr 2005 08:26:19 -0700
rashmi wrote:
> how to use static function defined in one file in another file is
that
> impposiible in 'c '
You could always have a wrapper function in the same file containing
the static function. This function would be of external linkage and
would invoke the static function internally.
So, you would have two functions in this file:
static my_static_fun{};
and the wrapper function
my_static wrapper
{
my_static_fun();
};
Then, you just include a header file containing the prototype of this
function in the other file from which you want accs to the static fun.
.
- References:
- Prev by Date: Re: Caaling assembly routine in c
- Next by Date: Re: Value of EOF
- Previous by thread: Re: how to use static function defined in one file in another file is that impposiible in 'c '
- Next by thread: Caaling assembly routine in c
- Index(es):
Relevant Pages
|