Prototype Declarations for Include Files?
Kinda a newbie question, but if you create functions in a *.h file and include it in your source, do you need to write prototype declarations?
Create your functions in a .c or .cpp files and write there prototypes in a .h file and include it in your source files. don''t create functions in a .h file... if you do so you only have to use it in only one .c or .cpp file. forget about inline functions they can be defined in a .h and included anywhere...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement