SDL_GetProcessOutput - Get the SDL_IOStream associated with process standard output.
Contents
Availability
This function is available since SDL 3.2.0.
Description
The process must have been created with SDL_CreateProcess() and pipe_stdio set to true, or with
SDL_CreateProcessWithProperties() and SDL_PROP_PROCESS_CREATE_STDOUT_NUMBER set to SDL_PROCESS_STDIO_APP.
Reading from this stream can return 0 with SDL_GetIOStatus() returning SDL_IO_STATUS_NOT_READY if no
output is available yet.
Function Parameters
process
The process to get the output stream for.
Name
SDL_GetProcessOutput - Get the SDL_IOStream associated with process standard output.
Return Value
Returns the output stream or NULL on failure; call SDL_GetError() for more information.
See Also
SDL_CreateProcess(3), SDL_CreateProcessWithProperties(3), SDL_GetProcessInput(3) Simple Directmedia Layer SDL 3.2.20 SDL_GetProcessOutput(3)
Synopsis
#include<SDL3/SDL_process.h>SDL_IOStream*SDL_GetProcessOutput(SDL_Process*process);
Thread Safety
It is safe to call this function from any thread.
