###### (This is the documentation for SDL3, which is under heavy development and the API is changing! [SDL2](https://wiki.libsdl.org/SDL2/) is the current stable version!) # SDL_IOprintf Print to an [SDL_IOStream](SDL_IOStream) data stream. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_iostream.h) ## Syntax ```c size_t SDL_IOprintf(SDL_IOStream *context, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2); ``` ## Function Parameters | | | | --------------- | ------------------------------------------------------------------- | | **context** | a pointer to an [SDL_IOStream](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 error; call [SDL_GetError](SDL_GetError)() for more information. ## Remarks This function does formatted printing to the stream. ## Version This function is available since SDL 3.0.0. ## See Also - [SDL_IOvprintf](SDL_IOvprintf) - [SDL_WriteIO](SDL_WriteIO) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryIOStream](CategoryIOStream)