Skip to content
ProcReadFromStdoutFmt

ProcReadFromStdoutFmt

Description

Blocking read of the child’s stdout, then parse the captured bytes with StrReadFmt using the supplied format directives. Convenience wrapper around ProcReadFromStdout + StrReadFmt for the common “drain the pipe, then scan it” pattern; the intermediate Str is owned by the macro and released before return.

Parameters

Name Direction Description
p in Process whose stdout should be drained.

Success

Returns to the caller. The stdout pipe was drained into a transient Str, StrReadFmt parsed it into the supplied outputs, and the transient buffer has been freed.

Failure

Returns to the caller. Underlying read/parse errors are logged by the wrapped calls; outputs whose corresponding directive did not match remain at their pre-call values. The transient buffer is freed on every path.

Usage example (Cross-references)

Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on