newlib/winsup/mingw/samples/globbing/noglob.c

23 lines
376 B
C
Raw Normal View History

2000-02-17 20:38:33 +01:00
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
/* This line turns off automatic command line globbing. */
int _CRT_glob = 0;
int
main (int argc, char* argv[])
{
int i;
printf ("Command line (via GetCommandLine) \"%s\"\n",
GetCommandLine());
for (i = 0; i < argc; i++)
{
printf ("Argv[%d] \"%s\"\n", i, argv[i]);
}
return 0;
}