delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/24/12:16:40

From: "H.W. Stockman" <hwstock AT swcp DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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...

- Raw text -


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