From: "H.W. Stockman" Newsgroups: comp.os.msdos.djgpp Subject: Re: Reading the command line Date: Fri, 24 Oct 1997 02:08:35 -0600 Organization: Lentil Sorbet, Inc. Lines: 12 Message-ID: <34505783.3DE3@swcp.com> References: <62pk3q$3q$1 AT panther DOT rmplc DOT co DOT uk> Reply-To: hwstock AT swcp DOT com NNTP-Posting-Host: pm2-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 Jon Seanor wrote: > > Just a quick question. > > I'm forever forgetting the syntax for reading the command line, i.e. passing > it to the main function as parameters. Do you know what the syntax is? > > void main(char* argv[], int argc) <---is this right? > {} order reversed -- argc first. That should be in just about any C book...