S. Md. Kabeer Ahmed wrote:
There are #ifndef _FILENAME_H used in header files and I very well
understand their usage. But I dont know what's the exact use when
#ifndef _FILENAME_C is used for c files. can anyone provide me an
explanation ????
You mean include guards in .c files? I haven't seen such things either, can
you give a concrete example? Note however that C doesn't distinct between
header and source files, so you can very well #include "foo.c", and in
some cases it might make sense. What doesn't make sense in these rare
cases is to add include guards, since those .c files are never included by
other headers and I have never seen a case where one such .c file included
another.
Uli