| 62 | } |
| 63 | |
| 64 | void EMUFILE_FILE::open(const char* fname, const char* mode) |
| 65 | { |
| 66 | fp = fopen(fname,mode); |
| 67 | if(!fp) |
| 68 | { |
| 69 | #ifdef _MSC_VER |
| 70 | std::wstring wfname = mbstowcs((std::string)fname); |
| 71 | std::wstring wfmode = mbstowcs((std::string)mode); |
| 72 | fp = _wfopen(wfname.c_str(),wfmode.c_str()); |
| 73 | #endif |
| 74 | if(!fp) |
| 75 | failbit = true; |
| 76 | } |
| 77 | this->fname = fname; |
| 78 | strcpy(this->mode,mode); |
| 79 | } |
| 80 | |
| 81 | |
| 82 | void EMUFILE_FILE::truncate(size_t length) |
no test coverage detected