delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "'Raf256' Rafal Maj" <raf256 AT go2 DOT pl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: command line argument |
Date: | 9 Jan 2002 12:15:19 GMT |
Organization: | aa |
Lines: | 22 |
Sender: | raf256 AT poczta DOT onet DOT pl@chello062179025129.chello.pl |
Message-ID: | <Xns919187936993Drfdfciasdsdj412tr@213.180.128.20> |
References: | <s2W_7.24353$KQ3 DOT 447543 AT news1 DOT oke DOT nextra DOT no> |
NNTP-Posting-Host: | chello062179025129.chello.pl |
Mime-Version: | 1.0 |
X-Trace: | news.onet.pl 1010578519 25929 62.179.25.129 (9 Jan 2002 12:15:19 GMT) |
X-Complaints-To: | abuse AT onet DOT pl |
NNTP-Posting-Date: | 9 Jan 2002 12:15:19 GMT |
User-Agent: | Xnews/4.11.09 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Drac0" <m-marti AT online DOT no> wrote in news:s2W_7.24353$KQ3 DOT 447543 AT news1 DOT oke DOT nextra DOT no: > /* could anyone tell me why this doesn't work? */ > if(* argv[1] >= 100) > printf("argv is bigger or equal to 100!\n"); argv[1] is a string (like "100") not a number ! if You write argv[1]>=100 then progrm understoods is at adres_od_string_in_memory(argv[1]) >= 100, so it is something like 0xFF11231 > 100 etc... use : int i = atoi(argv[1]); if (i>=100) ... write to my ICQ/email if You got more questions like that -- Raf256 ,--, _ ,- _ _ _ |,-'`_|_|_ `_||_'|_' raf256 AT wp DOT pl raf256 AT szybkapoczta DOT pl | `\|_| | |_,,_||_| GG-1175498 ICQ-143712878
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |