Subversion Repositories SvarDOS

Rev

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

Rev 397 Rev 399
Line 49... Line 49...
49
/* print s string and wait for a single key press from stdin. accepts only
49
/* print s string and wait for a single key press from stdin. accepts only
50
 * key presses defined in the c ASCIIZ string. returns offset of pressed key
50
 * key presses defined in the c ASCIIZ string. returns offset of pressed key
51
 * in string. keys in c MUST BE UPPERCASE! */
51
 * in string. keys in c MUST BE UPPERCASE! */
52
unsigned short askchoice(const char *s, const char *c);
52
unsigned short askchoice(const char *s, const char *c);
53
 
53
 
54
/* converts a path to its canonic representation */
54
/* converts a path to its canonic representation, returns 0 on success
-
 
55
 * or DOS err on failure (invalid drive) */
55
void file_truename(const char *src, char *dst);
56
unsigned short file_truename(const char *src, char *dst);
56
 
57
 
57
/* returns DOS attributes of file, or -1 on error */
58
/* returns DOS attributes of file, or -1 on error */
58
int file_getattr(const char *fname);
59
int file_getattr(const char *fname);
59
 
60
 
60
/* returns screen's width (in columns) */
61
/* returns screen's width (in columns) */
Line 64... Line 65...
64
unsigned short screen_getheight(void);
65
unsigned short screen_getheight(void);
65
 
66
 
66
/* displays the "Press any key to continue" msg and waits for a keypress */
67
/* displays the "Press any key to continue" msg and waits for a keypress */
67
void press_any_key(void);
68
void press_any_key(void);
68
 
69
 
-
 
70
/* validate a drive (A=0, B=1, etc). returns 1 if valid, 0 otherwise */
-
 
71
int isdrivevalid(unsigned char drv);
-
 
72
 
69
#endif
73
#endif