SDL_IOprintf - Print to an SDL_IOStream
Contents
Availability
This function is available since SDL 3.2.0.
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.
Header File
Defined in SDL3/SDL_iostream.h
Name
SDL_IOprintf - Print to an SDL_IOStream
data stream.
Return Value
Returns the number of bytes written or 0 on failure; call
SDL_GetError () for more information.
See Also
•(3), SDL_IOvprintf(3), •(3), SDL_WriteIO(3) Simple Directmedia Layer SDL 3.2.10 SDL_IOprintf(3)
Synopsis
#include"SDL3/SDL.h"size_tSDL_IOprintf(SDL_IOStream*context,constchar*fmt,...);
Thread Safety
This function is not thread safe.
