What is a “static” function in C?

前端 未结 12 1203
野的像风
野的像风 2020-11-22 16:03

The question was about plain c functions, not c++ static methods, as clarified in comments.

I understand what a static variable is, but wha

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 16:28

    static function definitions will mark this symbol as internal. So it will not be visible for linking from outside, but only to functions in the same compilation unit, usually the same file.

提交回复
热议问题