|
|
| version 1.10, 2005/02/13 02:36:16 | version 1.11, 2005/03/20 08:58:19 |
|---|---|
| Line 152 void DOSIOCALL file_setcd(const OEMCHAR | Line 152 void DOSIOCALL file_setcd(const OEMCHAR |
| OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { | OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { |
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (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, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (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, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (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, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (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, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (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, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); |
| return(file_attr(curpath)); | return(file_attr(curpath)); |
| } | } |