In article <d14h03$feh$1@news.net.uni-c.dk>, JS <sfsdfs@asdas.com> wrote:[color=blue]
>I am writing som C code[/color]
This is a C++ NG not a C one, so some thing are different, but anyway...
[color=blue]
>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?[/color]
That's one way do it, and should probably normally be your starting
point for external global functions.
Another way is to group "like functions", especially if they
are say static or refer to each other or something like that.
As with all things there is compromises to consider.
I would suggest getting Stroustrup's 3rd edition (or his spccial
edition) and checking out Chapter 9 for many issues such as this.
--
Greg Comeau / Comeau for the Mac? Stay tuned.
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?