From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: Command Line parameters Date: Mon, 28 Jun 1999 17:48:16 -0400 Organization: Netcom Lines: 26 Message-ID: <7l8qit$47s@dfw-ixnews21.ix.netcom.com> References: <19990628174003 DOT 22728 DOT 00000953 AT ng-ch1 DOT aol DOT com> NNTP-Posting-Host: prn-nj3-13.ix.netcom.com X-NETCOM-Date: Mon Jun 28 4:48:13 PM CDT 1999 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com #include int main(int argc, char argv[]) { int loop; for(loop = 0; loop < argc; loop++) { printf("argv[%i]: %s\n", loop, argv[loop]); } return 0; } FixAllPCs wrote in message news:19990628174003 DOT 22728 DOT 00000953 AT ng-ch1 DOT aol DOT com... > Could someone show me an example of command line parameters, please. I'm > working on a project that would have input like: > > program_name parameter1 parameter2 parameter3 > > That sort of thing. > > Thanks, > Tom Beauchamp