PrevUpHomeNext

Function null_device

boost::process::null_device

Synopsis

// In header: <boost/process/mitigate.hpp>


const char * null_device();

Description

Gets the name of the null device.

You can use null_device to initialize a boost::iostreams::file_descriptor_sink which discards data written to it.

Returns:

NUL on Windows and /dev/null on POSIX.


PrevUpHomeNext