---
name: "SDL_GetIOStatus"
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_GetIOStatus"
---

# SDL\_GetIOStatus(3)

Query the stream status of an SDL\_IOStream .

## NAME

SDL\_GetIOStatus - Query the stream status of an  **SDL\_IOStream** .

## HEADER FILE

Defined in SDL3/SDL\_iostream.h

## SYNOPSIS

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

**SDL\_IOStatus SDL\_GetIOStatus(SDL\_IOStream \*context);**

## DESCRIPTION

This information can be useful to decide if a short read or write was due to an error, an EOF, or a non-blocking operation that isn't yet ready to complete.

An  **SDL\_IOStream**

**SDL\_ReadIO**\
  or  **SDL\_WriteIO**\
  call; don't expect it to change if you just call this query function in a tight loop.

## FUNCTION PARAMETERS

- *context*

  the  **SDL\_IOStream**\
    to query.

## RETURN VALUE

( **SDL\_IOStatus** ) Returns an  **SDL\_IOStatus**\
  enum with the current state.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.
