Rose::StringUtility::popen_wrapper
Simple wrapper for Unix popen command.
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
bool
popen_wrapper(
std::string const& command,
std::vector<std::string>& result);
Description
If there is a failure (cannot create pipes, command not found, command terminated abnormally, input buffer too small, etc), then an error is printed to standard error (with or without line termination) and false is returned. When an error occurs the pipes that were opened to communicate with the subcommand might not be closed.
Return Value
True on success, false on failure.
Parameters
Name |
Description |
command |
Command to execute. |
result |
Output lines collected from the command. |
Created with MrDocs