[Courses] [C] A trick on header files including header files
Morgon Kanter
admin at surgo.net
Mon Dec 2 17:05:24 EST 2002
I was looking at the source code of SAFER, (safer.c and safer.h), and I saw
that in safer.h (which is included in safer.c), there exists this neat trick
to prevent it from being included twice.
at the beginning:
#ifndef SAFER_H
#define SAFER_H
then skip to the end:
#endif
I found that a rather neat trick, and thought I should share it.
More information about the Courses
mailing list