SDL_IOprintf - Man Page
Print to an SDL_IOStream data stream.
Synopsis
#include <SDL3/SDL_iostream.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
Do not use the same SDL_IOStream from two threads at once.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_IOvprintf(3), SDL_WriteIO(3).
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS