_STD_BEGIN FILE *_Fiopen(const char *filename, ios_base::openmode mode, int prot) // protection currently unused { // open wide-named file with byte name wchar_t wc_name[FILENAME_MAX]; if (mbstowcs(wc_name, filename, FILENAME_MAX) == (size_t)(-1)) return (0); return _Fiopen(wc_name, mode, prot); }
_CRTIMP2_PURE _Filet *__CLRCALL_PURE_OR_CDECL _Fiopen(const unsigned short *_Filename, ios_base::openmode _Mode, int _Prot) { // open file with wide name return (_Fiopen((wchar_t*)(_Filename), _Mode, _Prot)); }