Mail Archives: djgpp/1997/10/28/02:16:21

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: <>
References: <62pk3q$3q$1 AT panther DOT rmplc DOT co DOT uk> <34505783 DOT 3DE3 AT swcp DOT com>
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 |

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019