delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/28/02:24:33

From: larsnicolas AT aol DOT com (LarsNicolas)
Newsgroups: comp.os.msdos.djgpp
Subject: djgpp parameter error...
Lines: 23
NNTP-Posting-Host: ladder05.news.aol.com
X-Admin: news AT aol DOT com
Date: 28 Jan 2000 06:06:51 GMT
Organization: AOL http://www.aol.com
Message-ID: <20000128010651.15219.00000402@ng-cd1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

When I tried to pass '...' (3 dots) to my program compiled in djgpp, something
like:

C:\>myprog ...

Djgpp returns just a single dot in argv[]!  When I tried passing 4 dots or 2
dots, it is working fine...I don't know if this is a bug in my program or if
has something to do with my operating system (Windows 98), but I will really
appreciate if someone wil going to help me with this...Maybe this might be a
bug in djgpp?...

my code:
------------------------
int main(int argc, char **argv)   {
  printf("%s", argv[1]); 
  return 0;
};
------------------------

Thanks,
Lars

- Raw text -


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