Hi all,

I am somewhat confused about the concept of function declarations in header files. I discovered (by coincidence) that my IDE allows me to use a function foo() which is defined foo.c in another c file bar.c even when I comment out the declaration of foo() in foo.h.

I somehow read about this before but I totally forgot about it. Does this mean that a function is always global? If so, what is the use of a header file if it only contains function declarations?

thank you,

Jef