diff options
author | Larry Wall <lwall@netlabs.com> | 1992-06-08 04:52:08 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1992-06-08 04:52:08 +0000 |
commit | bee1dbe28446f1b188ddf14e24e7f65771825d8f (patch) | |
tree | f86e23246374104de23fe22cee4dfa6a9cca86e1 /os2 | |
parent | 8adcabd8d9cf3c71e660c45cb7165ae4694308d4 (diff) | |
download | perl-bee1dbe28446f1b188ddf14e24e7f65771825d8f.tar.gz |
perl 4.0 patch 26: patch #20, continued
See patch #20.
Diffstat (limited to 'os2')
-rw-r--r-- | os2/glob.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/os2/glob.c b/os2/glob.c index b87251a46b..75b00848be 100644 --- a/os2/glob.c +++ b/os2/glob.c @@ -1,18 +1,21 @@ /* * Globbing for OS/2. Relies on the expansion done by the library - * startup code. (dds) + * startup code. */ -#include <stdio.h> -#include <string.h> +#define PERLGLOB +#include "director.c" -main(int argc, char *argv[]) +int main(int argc, char **argv) { - register i; + SHORT i; + USHORT r; + CHAR *f; for (i = 1; i < argc; i++) { - fputs(IsFileSystemFAT(argv[i]) ? strlwr(argv[i]) : argv[i], stdout); - putchar(0); + f = IsFileSystemFAT(argv[i]) ? strlwr(argv[i]) : argv[i]; + DosWrite(1, f, strlen(f) + 1, &r); } + return argc - 1; } |