| delorie.com/archives/browse.cgi | search |
| From: | Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Reading the command line |
| Date: | Fri, 24 Oct 1997 11:11:23 +0200 |
| Organization: | University of Ghent, Belgium |
| Lines: | 15 |
| Message-ID: | <3450663B.4202@rug.ac.be> |
| References: | <62pk3q$3q$1 AT panther DOT rmplc DOT co DOT uk> <34505783 DOT 3DE3 AT swcp DOT com> |
| NNTP-Posting-Host: | eduserv1.rug.ac.be |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
H.W. Stockman wrote:
> > void main(char* argv[], int argc) <---is this right?
> > {}
>
> order reversed -- argc first. That should be in just
> about any C book...
And the return type of main is int, not void. That should be in any text
book too.
--
+----------------+
| Vik Heyndrickx |
+----------------+
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |