MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / CONVENTION redirect_stdout

Function CONVENTION redirect_stdout

src/CoolPropLib.cpp:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122EXPORT_CODE long CONVENTION redirect_stdout(const char* file) {
123 FILE* fp = freopen(file, "a+", stdout);
124 return (fp) ? 1 : 0; // 0 = failure if redirection could not be done; original stdout is already closed
125}
126EXPORT_CODE int CONVENTION set_reference_stateS(const char* Ref, const char* reference_state) {
127 fpu_reset_guard guard;
128 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected