-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqualify.h
25 lines (23 loc) · 1.35 KB
/
qualify.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/******************************************************************/
/* qualify() modifies a string as required to generate a */
/* "fully-qualified" filename, which is a filename that */
/* complete drive specifier and path name. */
/* */
/* input: argptr: the input filename. */
/* */
/* output: qresult, a bit-mapped unsigned int with the */
/* following definitions: */
/* */
/* bit 0 == 1 if wildcards are present. */
/* bit 1 == 1 if no wildcards and path does not exist. */
/* bit 2 == 1 if no wildcards and path exists as a file. */
/* bit 7 == 1 if specified drive is invalid. */
/* */
/******************************************************************/
/*********************** qualify() constants ************************/
#define QUAL_WILDCARDS 0x01
#define QUAL_NO_PATH 0x02
#define QUAL_IS_FILE 0x04
#define QUAL_INV_DRIVE 0x80
// from QUALIFY.CPP
unsigned qualify(char *argptr);