delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/09/06:45:19

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Drac0" <m-marti AT online DOT no>
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: <s2W_7.24353$KQ3.447543@news1.oke.nextra.no>
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 <stdio.h>

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! */




- Raw text -


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