summaryrefslogtreecommitdiff
path: root/os2/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'os2/glob.c')
-rw-r--r--os2/glob.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/os2/glob.c b/os2/glob.c
new file mode 100644
index 0000000000..b87251a46b
--- /dev/null
+++ b/os2/glob.c
@@ -0,0 +1,18 @@
+/*
+ * Globbing for OS/2. Relies on the expansion done by the library
+ * startup code. (dds)
+ */
+
+#include <stdio.h>
+#include <string.h>
+
+main(int argc, char *argv[])
+{
+ register i;
+
+ for (i = 1; i < argc; i++)
+ {
+ fputs(IsFileSystemFAT(argv[i]) ? strlwr(argv[i]) : argv[i], stdout);
+ putchar(0);
+ }
+}