Contents Up << >>

What header file name convention is best? "foo.H"? "foo.hh"? "foo.hpp"?

If you already have a convention, use it. If not, and if you don't need your editor to distinguish between C and C++ files, simply use ".h". Otherwise use whatever the editor wants, such as ".H", ".hh", or ".hpp".

At Paradigm Shift, Inc., we use ".h" for both C and C++ source files (then again, we don't create many straight C header files).