delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/11/02:22:22

From: Kappas Ioannis <giannisk AT delta DOT edu DOT gr>
Message-Id: <199706110609.JAA19858@andromeda.delta.edu.gr>
Subject: BUG: DJGPP, argc and *
To: djgpp AT delorie DOT com
Date: Wed, 11 Jun 1997 09:09:42 +0300 (GMT+0300)
MIME-Version: 1.0

I think I've found a bug in DJGPP. When an argument in the command line is
the character * the argc is 108 instead of 2.
	consider this program:
main(int argc, char *argv[]) 
{
	printf("%d\n", argc);
	return 0;
}

when we call the program with the asterisk, e.g. "a *" the argc is returning
109 instead of 2. Is this normal or is this a bug??

- Raw text -


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