From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: void main (was Re: Begginer problems with C & DJGPP) Date: Mon, 29 Dec 1997 14:22:44 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 23 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <34A7F884.73F169DC@cornell.edu> References: <682ti1$keq$1 AT svr-c-02 DOT core DOT theplanet DOT net> <34A579C8 DOT 6B72 AT cs DOT com> <34A7D31D DOT 434B5D15 AT IHateSpam DOT com> NNTP-Posting-Host: cu-dialup-0041.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ryan McGee wrote: > > why is useing void main() a bad idea? I've heard that all over the > place but nobody tells me why I shouldn't do that. Does it have > something to do with error checking? What's going to check the return > value of main? please address basic C related questions to the appropriate groups. For example, comp.lang.c or comp.lang.c.moderated. for an answer to your question, see the comp.lang.c FAQ at http://www.cis.ohio-state.edu/hypertext/faq/usenet/C-faq/faq/faq.html look at questions 11.12, 11.13, 11.14, 11.15 and 11.16. personally, i would recommend you stay away from the 'dummies' and 'idiots' books unless you really are one. -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/