From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,259e99d494c8e68b X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,259e99d494c8e68b X-Google-Attributes: gidfee84,public X-Google-Thread: 1014db,259e99d494c8e68b X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1994-09-03 17:10:59 PST Newsgroups: comp.unix.osf.osf1,comp.lang.c,comp.unix.questions Path: bga.com!news.sprintlink.net!uunet!MathWorks.Com!udel!princeton!nimaster.princeton.edu!blume From: blume@beth.princeton.edu (Matthias Blume) Subject: Arghhhhh (Was: Re: [Q] Accurately measure exec time of a process?) In-Reply-To: tim@handel.Princeton.EDU's message of Sat, 3 Sep 1994 17:45:54 GMT Message-ID: Originator: news@nimaster Sender: news@Princeton.EDU (USENET News System) Nntp-Posting-Host: beth.cs.princeton.edu Organization: Princeton University References: <349aat$mer@pirates.cs.swt.edu> <1994Sep3.174554.27974@Princeton.EDU> Date: Sat, 3 Sep 1994 18:21:56 GMT Xref: bga.com comp.unix.osf.osf1:3364 comp.lang.c:23165 comp.unix.questions:12794 In article <1994Sep3.174554.27974@Princeton.EDU> tim@handel.Princeton.EDU (Tim Hollebeek) writes: [ ... ] In your case you would just have to make sure your program looks something like: void main() { doTaskOne(); doTaskTwo(); } no, No, NO, *NO*, NOOOOOOOOOO!!!! (See the numerous threads on how to correctly declare ``main''. I'm sick of it.) Maybe someone can set up an automated service which sends a followup to each and every article in c.l.c (excluding its own) -- with the portion of the FAQ, quotes from the standard, K&R2, H&S, etc., and a standard flame -- all concerning the correct definition of ``main'', and why ``void main ...'' is wrong. There is an 80% chance that this kind of followup is appropriate. -- -Matthias