SDL Wiki

SDL_IOprintf

Print to an SDL_IOStream data stream.

Header File

Defined in <SDL3/SDL_iostream.h>

Syntax

size_t SDL_IOprintf(SDL_IOStream *context, const char *fmt, ...);

Function Parameters

SDL_IOStream * context a pointer to an SDL_IOStream structure.
const char * fmt a printf() style format string.
... ... additional parameters matching % tokens in the fmt string, if any.

Return Value

(size_t) Returns the number of bytes written or 0 on failure; call SDL_GetError() for more information.

Remarks

This function does formatted printing to the stream.

Thread Safety

This function is not thread safe.

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryIOStream


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.