cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Ryan McGee <rdm AT IHateSpam DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Begginer problems with C & DJGPP |
Date: | Mon, 29 Dec 1997 10:43:09 -0600 |
Organization: | InLink |
Lines: | 25 |
Message-ID: | <34A7D31D.434B5D15@IHateSpam.com> |
References: | <682ti1$keq$1 AT svr-c-02 DOT core DOT theplanet DOT net> <34A579C8 DOT 6B72 AT cs DOT com> |
NNTP-Posting-Host: | iits0283.inlink.com |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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? Ryan rdm AT inlink DOT com > _C for Dummies_ is not the greatest of tutorials; I read the first book > as a lark and was not impressed. While it may provide a relatively > painless introduction to C, it glosses over a great many rules in the > process. One of my biggest pet peeves about _C for Dummies_ is that it > advocates the use of 'void main()' without telling readers that it's a > bad idea. > > -- > --------------------------------------------------------------------- > | John M. Aldrich | "History does not record anywhere at | > | aka Fighteer I | any time a religion that has any | > | mailto:fighteer AT cs DOT com | rational basis." | > | http://www.cs.com/fighteer | - Lazarus Long | > ---------------------------------------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |