###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) # SDL_GetProcessInput Get the [SDL_IOStream](SDL_IOStream) associated with process standard input. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_process.h) ## Syntax ```c SDL_IOStream* SDL_GetProcessInput(SDL_Process *process); ``` ## Function Parameters | | | | | ---------------------------- | ----------- | ---------------------------------------- | | [SDL_Process](SDL_Process) * | **process** | The process to get the input stream for. | ## Return Value ([SDL_IOStream](SDL_IOStream) *) Returns the input stream or NULL on failure; call [SDL_GetError](SDL_GetError)() for more information. ## Remarks The process must have been created with [SDL_CreateProcess](SDL_CreateProcess)() and pipe_stdio set to true, or with [SDL_CreateProcessWithProperties](SDL_CreateProcessWithProperties)() and [`SDL_PROP_PROCESS_CREATE_STDIN_NUMBER`](SDL_PROP_PROCESS_CREATE_STDIN_NUMBER) set to [`SDL_PROCESS_STDIO_APP`](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](SDL_GetProcessOutput)() and read the output in parallel with writing input. ## Thread Safety It is safe to call this function from any thread. ## Version This function is available since SDL 3.1.3. ## See Also - [SDL_CreateProcess](SDL_CreateProcess) - [SDL_CreateProcessWithProperties](SDL_CreateProcessWithProperties) - [SDL_GetProcessOutput](SDL_GetProcessOutput) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryProcess](CategoryProcess)