MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fopen

Function fopen

source/MRMesh/MRFile.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8FILE * fopen( const std::filesystem::path & filename, const char * mode )
9{
10#ifdef _WIN32
11 std::wstring wmode( mode, mode + std::strlen( mode ) );
12 return _wfopen( filename.wstring().c_str(), wmode.c_str() );
13#else
14 // Linux
15 return std::fopen( utf8string( filename ).c_str(), mode );
16#endif
17}
18
19FILE * File::open( const std::filesystem::path & filename, const char * mode )
20{

Callers 1

openMethod · 0.85

Calls 1

utf8stringFunction · 0.85

Tested by

no test coverage detected