PrevUpHomeNext

Function zero_device

boost::process::zero_device

Synopsis

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


const char * zero_device();

Description

Gets the name of the zero device.

You can use zero_device to initialize a boost::iostreams::file_descriptor_source to read null characters from.

Returns:

NUL on Windows and /dev/zero on POSIX.


PrevUpHomeNext