From: "H.W. Stockman" Newsgroups: comp.os.msdos.djgpp Subject: Re: Reading the command line Date: Tue, 28 Oct 1997 18:03:20 -0700 Organization: Lentil Sorbet, Inc. Lines: 16 Message-ID: <34568B58.7B61@swcp.com> References: <62pk3q$3q$1 AT panther DOT rmplc DOT co DOT uk> <34505783 DOT 3DE3 AT swcp DOT com> <3450663B DOT 4202 AT rug DOT ac DOT be> <62q0ic$73f$1 AT panther DOT rmplc DOT co DOT uk> <345088C1 DOT E26 AT rug DOT ac DOT be> Reply-To: hwstock AT swcp DOT com NNTP-Posting-Host: pm4-23.swcp.com 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 Vik Heyndrickx wrote: > > Jon Seanor wrote: > > > > >And the return type of main is int, not void. That should be in any text > > >book too. > > > > Only if you want to return something! > > The standard tells that the return type of main is int and not void. Many compilers will gleefully let you declare void main(){} ...without a single complaint. However, the consequences of mixing order of argc and argv[] are likely to be more significant.