4 ms·
Static is probably safer in C (as opposed to C++), as it's valid to have a function with the same name defined as inline within one translation unit and elsewhe
by foldr 4y ago
Static is probably safer in C (as opposed to C++), as it's valid to have a function with the same name defined as inline within one translation unit and elsewhere with external linkage. The compiler is then free to resolve the relevant function calls to either the inline version or the external version (!)
https://www.ibm.com/docs/en/ssw_ibm_i_73/rzarg/inline_linkage.htm https://www.ibm.com/docs/en/ssw_ibm_i_73/rzarg/inline_linkag...