Confusion on Header Files to Connect Multiple C Source Files
Ok, I've tried to find an answer to this on the web but I get a mixed response. I got a general C programming question. If I have functions in another source file, call it functions.c, and I have the functions declared in the header file, call it functions.h, I know I have to include the header file in my main.c file. This makes sense. BUT does it also have to be listed at the top of the source file its supports?? In this example, do I need to have #include "functions.h" at the top of the functions.c source file as well as the main?
Using MCC, I the header files included in their supporting source files. For example, it creates the Initialize.c file. within that, I see #include "Initialize.h". I thought this only needed to be in the main.c file or am I mistaken?
Any clarity on this would be appreciated!