MCPcopy Create free account
hub / github.com/SFML/SFML / openFile

Function openFile

src/SFML/System/Utils.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54std::FILE* openFile(const std::filesystem::path& filename, std::string_view mode)
55{
56#ifdef SFML_SYSTEM_WINDOWS
57 const std::wstring wmode(mode.begin(), mode.end());
58 return _wfopen(filename.c_str(), wmode.data());
59#else
60 return std::fopen(filename.c_str(), mode.data());
61#endif
62}
63
64} // namespace sf

Callers 2

openMethod · 0.85
openMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected