Mail Archives: djgpp/1997/06/11/02:46:53
On Wed, 11 Jun 1997, Kappas Ioannis wrote:
> 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??
>
The asterisk is expanded (globbed) automatically. This is because under
UNIX a * argument means all files (just like *.* means the same thing
under DOS).
-----------------------------------------------------------------------
Orlando Alcantara Andico
WWW: http://www2.mozcom.com/~orly/ Email: orly AT mozcom DOT com
ICBM: 14 deg. 30' N, 120 deg. 59' E POTS: (+632) 932-2385
- Raw text -