sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.IostreamShims.FunPtr

Synopsis

Documentation

lithon_SDL_IOprintf :: FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize) Source #

Print a string to an SDL_IOStream data stream.

A fixed-arity shim over the variadic SDL_IOprintf: str is written verbatim. It is never parsed as a printf-style format string, so a percent sign in it needs no escaping.

context
a pointer to an SDL_IOStream structure.
str
the NUL-terminated string to write.
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.
See also
SDL_WriteIO
C declaration
lithon_SDL_IOprintf, defined at sdl3-bindgen-sys/SDL_iostream_shims.h 42:26

Since: 3.2.0