Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!ari From: ari@eleazar.dartmouth.edu (Ari Halberstadt) Newsgroups: comp.lang.c Subject: Re: entry at other than main (was want to know) Message-ID: <15127@dartvax.Dartmouth.EDU> Date: 21 Aug 89 00:36:11 GMT References: <8487@bsu-cs.bsu.edu> <2980@solo9.cs.vu.nl> <182@sunquest.UUCP> <2563@trantor.harris-atd.com> <19164@mimsy.UUCP> Sender: news@dartvax.Dartmouth.EDU Reply-To: ari@eleazar.dartmouth.edu (Ari Halberstadt) Organization: Dartmouth College, Hanover, NH Lines: 16 In article <19164@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In many articles many people write this, that, and the other argument >for or against `main()' as the program entry point. [lots of very good arguments] Ok, there's actually a very simple way to do this. Just have an option to the linker telling it what the entry point is. This is done on the Macintosh with MPW. So, if you just can't live with a 'main' name, then go get a strange name :-). Personally I like main: when I come across a program with oh-so-many files, all I have to do is 'grep main' and I'm off to C the wizard, the wonderful wizard of Oz. -- Ari Halberstadt '91, "Long live succinct signatures" E-mail: ari@eleazar.dartmouth.edu Tel: (603) 640-5687 Disclaimer: "Live Free or Die"