I was reading about static functions in C on this thread: https://stackoverflow.com/a/558201/7997108
As i understood it, basically where you define the static functions is the only "place"/file (fileA.c i.e.) where you can call it, which kinda makes this function "private" to that .c or .h file (or translation unit). But if you #include this file in some other (fileB.c) you will still be able to use it there as well?
So im trying to understand in which case you want the function to be static to its own .c and how it makes sense if you can still use that "private"/static function by just including the file where it is defined.
Also as i understand, in case you don't include some other file where some function is defined you won't be able to use/call that function anyways right?
In other words i just cant comprehend what is the typical use-case for static functions and how is it different from non-static function basically.