JS wrote:
I am writing som C code and was wondering if I should call the filename the
same as the name of my function. It compiles ok but should I make a file for
each funtion just to keep it orderly or is there no tradition for this?
I'll answer your question, even though it's about C (unless you forgot
the plusses ? :-))
Do as you please :-) There are no rules whatsoever in how to organize
your functions in various files. It might be a good idea, though, so
that you don't have to look in lots of files to find the definition of a
function you used in another function. An idea would be to organize your
functions in files, so that each file has functions for doing specific
parts of a program. That's how I'd do it, and it seems that others are
doing this, too.
FUT: comp.lang.c
Sincerely,
--
Mads Jensen - remove z's in email
If the code and the comments disagree, then both
are probably wrong. -- Norm Schryer