MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / openForWriteToDevNull

Method openForWriteToDevNull

Libraries/File/File.cpp:792–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790//-------------------------------------------------------------------------------------------------------
791
792SC::Result SC::FileDescriptor::openForWriteToDevNull()
793{
794#if SC_PLATFORM_WINDOWS
795 return open(L"NUL", FileOpen::Append);
796#else
797 return open("/dev/null", FileOpen::Append);
798#endif
799}
800
801SC::Result SC::FileDescriptor::openStdOutDuplicate()
802{

Callers 1

launchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected