---
name: "SDL_GetProcessInput"
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_GetProcessInput"
---

# SDL\_GetProcessInput(3)

Get the SDL\_IOStream associated with process standard input.

## NAME

SDL\_GetProcessInput - Get the  **SDL\_IOStream**\
  associated with process standard input.

## HEADER FILE

Defined in SDL3/SDL\_process.h

## SYNOPSIS

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

**SDL\_IOStream \* SDL\_GetProcessInput(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\_STDIN\_NUMBER** set to  **SDL\_PROCESS\_STDIO\_APP** .

Writing to this stream can return less data than expected if the process hasn't read its input. It may be blocked waiting for its output to be read, if so you may need to call  **SDL\_GetProcessOutput** () and read the output in parallel with writing input.

## FUNCTION PARAMETERS

- *process*

  The process to get the input stream for.

## RETURN VALUE

( **SDL\_IOStream**\
  \*) Returns the input 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\_GetProcessOutput**(3)](/SDL_GetProcessOutput/3.md)
