www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/07/13:44:34

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to fix?
Date: Sun, 07 May 2000 18:58:19 +0100
Organization: Customer of Planet Online
Lines: 13
Message-ID: <ejbbhsgehlfte2mkt5v5r4q971i2fa3mtm@4ax.com>
References: <8f435u$j50$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: modem-9.indium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news6.svr.pol.co.uk 957722333 18789 62.136.40.9 (7 May 2000 17:58:53 GMT)
NNTP-Posting-Date: 7 May 2000 17:58:53 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

jaxonjr AT my-deja DOT com wrote:

> How do I fix this?
> case '/' works but case '*' doesn't.

The '*' is being expanded.  Try adding this code to the top of your
program and you will see what is happening:

   int i;
   for (i=0; i<argc; i++)
       printf("argv[%d] = '%s'\n", i, argv[i]);

Section 16.1 of the FAQ describes the fix for this.

- Raw text -


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