MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / shell_read

Function shell_read

source/matplot/util/popen.cpp:260–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260int shell_read(const std::string &cmd, std::string &data)
261{
262 auto pipe = ipipe{};
263 if (auto err = pipe.open(cmd); err != 0)
264 return err;
265 return pipe.read(data);
266}

Callers 1

run_and_get_outputFunction · 0.85

Calls 2

readMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected