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

23 lines
376 B
C

#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;
}