[OCLUG-devel] C++ suffixes

Christopher Smith x at xman.org
Fri Jun 4 16:08:54 PDT 2004


On Fri, 2004-06-04 at 15:57, Stephen Crane wrote:
> Hi
> 
> Glad to see a programming list! 
> I had a quick question on header files. What is the "standard" suffix in linux 
> to use for C++ header files. Is it .h or .hpp? And what about for source 
> files? .C or .cpp?

There really is no standard. I've seen:
.h
.H
.hpp
.hcc
.C
.cc
.cpp

Oh, and one crazy person did:

.h++
.c++

(you just know that screwed up a few shell scripts).

--Chris


More information about the OCLUG-devel mailing list