delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/24/11:33:53

From: "Jon Seanor" <jseanor AT rmplc DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Reading the command line
Date: Fri, 24 Oct 1997 08:52:04 +0100
Organization: Research Machines plc
Lines: 15
Message-ID: <62pk3q$3q$1@panther.rmplc.co.uk>
NNTP-Posting-Host: 172.16.27.70
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?
{}

Thanks to all

Jon




- Raw text -


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