Subversion Repositories SvarDOS

Rev

Rev 399 | Rev 410 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 399 Rev 406
Line 38... Line 38...
38
#define DOS_ATTR_VOL  8
38
#define DOS_ATTR_VOL  8
39
#define DOS_ATTR_DIR 16
39
#define DOS_ATTR_DIR 16
40
#define DOS_ATTR_ARC 32
40
#define DOS_ATTR_ARC 32
41
 
41
 
42
/* find first matching files using a FindFirst DOS call
42
/* find first matching files using a FindFirst DOS call
-
 
43
 * attr contains DOS attributes that files MUST have (ie attr=0 will match all
-
 
44
 * files)
43
 * returns 0 on success or a DOS err code on failure */
45
 * returns 0 on success or a DOS err code on failure */
44
unsigned short findfirst(struct DTA *dta, const char *pattern, unsigned short attr);
46
unsigned short findfirst(struct DTA *dta, const char *pattern, unsigned short attr);
45
 
47
 
46
/* find next matching, ie. continues an action intiated by findfirst() */
48
/* find next matching, ie. continues an action intiated by findfirst() */
47
unsigned short findnext(struct DTA *dta);
49
unsigned short findnext(struct DTA *dta);
Line 68... Line 70...
68
void press_any_key(void);
70
void press_any_key(void);
69
 
71
 
70
/* validate a drive (A=0, B=1, etc). returns 1 if valid, 0 otherwise */
72
/* validate a drive (A=0, B=1, etc). returns 1 if valid, 0 otherwise */
71
int isdrivevalid(unsigned char drv);
73
int isdrivevalid(unsigned char drv);
72
 
74
 
-
 
75
/* converts a filename into FCB format (FILENAMEEXT) */
-
 
76
void file_fname2fcb(char *dst, const char *src);
-
 
77
 
-
 
78
/* converts a FCB filename (FILENAMEEXT) into normal format (FILENAME.EXT) */
-
 
79
void file_fcb2fname(char *dst, const char *src);
-
 
80
 
73
#endif
81
#endif