delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/10/13:02:56

Date: Mon, 10 Aug 92 18:21:11 +0200
From: kunst AT prl DOT philips DOT nl
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: how to use MS-DOS wild cards
Reply-To: kunst AT prl DOT philips DOT nl

Hello djgpp gurus,

When running the program 'test.c' 

  #include <stdio.h>
  main(int argc, char **argv)
  {
    int i;
    for (i=0; i<argc; i++) printf ("%d : %s\n", i, *argv++);
  }

with: '(go32) test *.c' as command line, I get something like:

  0 : test.exe
  1 : *.c

Does anyone know how to obtain a real file list ?
(I know this is some kind of MS-DOS peculiarity)

Pieter Kunst   
kunst AT prl DOT philips DOT nl  

Disclaimer: If this is a typical FAQ, I'm only a DJGPP beginner :-)



- Raw text -


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