Scroll to navigation

SDL_RWprintf(3) SDL3 FUNCTIONS SDL_RWprintf(3)

NAME

SDL_RWprintf - Print to an SDL_RWops
data stream.

SYNOPSIS

#include "SDL3/SDL.h"
size_t SDL_RWprintf(SDL_RWops *context, SDL_PRINTF_FORMAT_STRING const char *fmt, ...)  SDL_PRINTF_VARARG_FUNC(2);

DESCRIPTION

This function does formatted printing to the stream.

FUNCTION PARAMETERS

a pointer to an SDL_RWops
structure
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 () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_RWclose(3), SDL_RWFromConstMem(3), SDL_RWFromFile(3), SDL_RWFromMem(3), SDL_RWread(3), SDL_RWseek(3), SDL_RWwrite(3)

SDL 3.0.0 SDL