H
Howard
Hi,
I came across some sample code for using a third-party API, and the code
in it had several free-standing (i.e., non-member) functions, but strangely,
these were declared as 'static'. My compiler tells me that the function has
no prototype, which is weird, because there *is* a prototype in the header
file. I was not able to find in my books any reference to a static function
that was not a member function. The closest info I could find (via google)
was something about making the symbol "local", and a suggestion that this
was deprecated in C++.
Can someone tell me what it means to have the static keywoard in front
of a non-member function, and whether it can be safely removed for my use?
Thanks,
Howard
I came across some sample code for using a third-party API, and the code
in it had several free-standing (i.e., non-member) functions, but strangely,
these were declared as 'static'. My compiler tells me that the function has
no prototype, which is weird, because there *is* a prototype in the header
file. I was not able to find in my books any reference to a static function
that was not a member function. The closest info I could find (via google)
was something about making the symbol "local", and a suggestion that this
was deprecated in C++.
Can someone tell me what it means to have the static keywoard in front
of a non-member function, and whether it can be safely removed for my use?
Thanks,
Howard