SysProcReadFromStderr
- Function
- October 8, 2025
Table of Contents
SysProcReadFromStderr
SysProcReadFromStderr
Description
Perform a blocking read from stderr
of child process to provided buffer.
Parameters
Name | Direction | Description |
---|---|---|
proc | in | Child process handle to read from. |
buf | out | Pointer to Str object where the read data will be appended. |
Success
Return number of bytes read.
Failure
Return -1
Usage example (Cross-references)
- In
Proc.c:510
:
}
i32 SysProcReadFromStderr(SysProc *proc, Str *buf) {
return sys_proc_read_internal(proc, buf, /* is stdout*/ false);
}
- In
Proc.h:175
:
do { \
Str b_ = StrInit(); \
SysProcReadFromStderr((p), &b_); \
const char *in_ = b_.data; \
StrReadFmt(in_, __VA_ARGS__); \