---
name: "SDL_IOprintf"
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_IOprintf"
---

# SDL\_IOprintf(3)

Print to an SDL\_IOStream data stream.

## NAME

SDL\_IOprintf - Print to an  **SDL\_IOStream**\
  data stream.

## HEADER FILE

Defined in SDL3/SDL\_iostream.h

## SYNOPSIS

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

**size\_t SDL\_IOprintf(SDL\_IOStream \*context, const char \*fmt, ...);**

## DESCRIPTION

This function does formatted printing to the stream.

## FUNCTION PARAMETERS

- *context*

  a pointer to an  **SDL\_IOStream**\
    structure.

- *fmt*

  a printf() style format string.

- *...*

  additional parameters matching % tokens in the **fmt** string, if any.

## RETURN VALUE

Returns the number of bytes written or 0 on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_IOvprintf**(3)](/SDL_IOvprintf/3.md), **•**(3), [**SDL\_WriteIO**(3)](/SDL_WriteIO/3.md)
