| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.IostreamShims.Unsafe
Synopsis
- lithon_SDL_IOprintf :: Ptr SDL_IOStream -> PtrConst CChar -> IO CSize
Documentation
Arguments
| :: Ptr SDL_IOStream |
|
| -> PtrConst CChar |
|
| -> 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 atsdl3-bindgen-sys/SDL_iostream_shims.h 42:26
Since: 3.2.0