sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.IostreamShims.Unsafe

Synopsis

Documentation

lithon_SDL_IOprintf Source #

Arguments

:: Ptr SDL_IOStream
context
a pointer to an SDL_IOStream structure.
-> PtrConst CChar
str
the NUL-terminated string to write.
-> IO CSize 

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.

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