2 * Globbing for NT. Relies on the expansion done by the library
13 main(int argc, char *argv[])
19 char volname[MAX_PATH];
20 DWORD serial, maxname, flags;
23 /* check out the file system characteristics */
24 if (GetFullPathName(".", MAX_PATH, root, &dummy)) {
25 if (dummy = strchr(root, '\\'))
27 if (GetVolumeInformation(root, volname, MAX_PATH,
28 &serial, &maxname, &flags, 0, 0)) {
29 downcase = !(flags & FS_CASE_IS_PRESERVED);
33 setmode(fileno(stdout), O_BINARY);
34 for (i = 1; i < argc; i++) {
35 len = strlen(argv[i]);
38 if (i > 1) fwrite("\0", sizeof(char), 1, stdout);
39 fwrite(argv[i], sizeof(char), len, stdout);