Prototype Declarations for Include Files?

Started by
1 comment, last by Jackysan 21 years, 9 months ago
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?
Advertisement
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...
____________________________________MSN | AIM | YIM | ICQ
Cool. Thanks a lot. I put my functions in a .cpp file and put the all the prototype declarations in "pdec.h". It seems to be working fine.

This topic is closed to new replies.

Advertisement