logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_IOprintf - Print to an SDL_IOStream

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.

See Also