X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Drac0" Newsgroups: comp.os.msdos.djgpp Subject: command line argument Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 213.236.199.50 X-Complaints-To: news-abuse AT nextra DOT no NNTP-Posting-Date: Wed, 09 Jan 2002 12:44:24 MET Organization: Nextra Public Access X-Trace: readme.online.no 1010576664 213.236.199.50 Date: Wed, 9 Jan 2002 12:13:12 +0100 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com /* could anyone tell me why this doesn't work? */ #include main(int argc, int * argv[]) { if(* argv[1] >= 100) printf("argv is bigger or equal to 100!\n"); else printf("argv is less than 100!\n"); return 0; } /* I cant see why this shouldn't work! */