diff options
Diffstat (limited to 'winsup/mingw/samples/globbing/noglob.c')
-rw-r--r-- | winsup/mingw/samples/globbing/noglob.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/winsup/mingw/samples/globbing/noglob.c b/winsup/mingw/samples/globbing/noglob.c new file mode 100644 index 0000000..8bc4c82 --- /dev/null +++ b/winsup/mingw/samples/globbing/noglob.c @@ -0,0 +1,22 @@ +
+#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;
+}
|