|
|
| version 1.13, 2005/04/01 15:35:49 | version 1.14, 2007/01/08 08:52:21 |
|---|---|
| Line 193 void DOSIOCALL file_setcd(const OEMCHAR | Line 193 void DOSIOCALL file_setcd(const OEMCHAR |
| OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { | OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(curpath); | return(curpath); |
| } | } |
| FILEH DOSIOCALL file_open_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_open_c(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(file_open(curpath)); | return(file_open(curpath)); |
| } | } |
| FILEH DOSIOCALL file_open_rb_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_open_rb_c(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(file_open_rb(curpath)); | return(file_open_rb(curpath)); |
| } | } |
| FILEH DOSIOCALL file_create_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_create_c(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(file_create(curpath)); | return(file_create(curpath)); |
| } | } |
| short DOSIOCALL file_delete_c(const OEMCHAR *path) { | short DOSIOCALL file_delete_c(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(file_delete(curpath)); | return(file_delete(curpath)); |
| } | } |
| short DOSIOCALL file_attr_c(const OEMCHAR *path) { | short DOSIOCALL file_attr_c(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, |
| NELEMENTS(curpath) - (int)(curfilep - curpath)); | |
| return(file_attr(curpath)); | return(file_attr(curpath)); |
| } | } |