home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Serving the Web
/
ServingTheWeb1995.disc1of1.iso
/
linux
/
slacksrce
/
d
/
perl
/
perl-4.000
/
perl-4
/
perl-4.036
/
os2
/
glob.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-02-08
|
360 b
|
22 lines
/*
* Globbing for OS/2. Relies on the expansion done by the library
* startup code.
*/
#define PERLGLOB
#include "director.c"
int main(int argc, char **argv)
{
SHORT i;
USHORT r;
CHAR *f;
for (i = 1; i < argc; i++)
{
f = IsFileSystemFAT(argv[i]) ? strlwr(argv[i]) : argv[i];
DosWrite(1, f, strlen(f) + 1, &r);
}
return argc - 1;
}