---
name: "SDL_GetProcessOutput"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetProcessOutput"
---

# SDL\_GetProcessOutput(3)

Get the SDL\_IOStream associated with process standard output.

## NAME

SDL\_GetProcessOutput - Get the  **SDL\_IOStream**\
  associated with process standard output.

## HEADER FILE

Defined in SDL3/SDL\_process.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_IOStream \* SDL\_GetProcessOutput(SDL\_Process \*process);**

## 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.

## RETURN VALUE

( **SDL\_IOStream**\
  \*) Returns the output stream or NULL on failure; call  **SDL\_GetError** () for more information.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateProcess**(3)](/SDL_CreateProcess/3.md), **•**(3), [**SDL\_CreateProcessWithProperties**(3)](/SDL_CreateProcessWithProperties/3.md), **•**(3), [**SDL\_GetProcessInput**(3)](/SDL_GetProcessInput/3.md)
