Function SDL_IOprintf

pub unsafe extern "C" fn SDL_IOprintf(
    context: *mut SDL_IOStream,
    fmt: *const i8,
    ...
) -> usize
Available on crate feature dep_sdl3 only.
Expand description

Print to an SDL_IOStream data stream.

This function does formatted printing to the stream.

§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.

§Return value

Returns the number of bytes written or 0 on failure; call SDL_GetError() for more information.

§Thread safety

This function is not thread safe.

§Availability

This function is available since SDL 3.2.0.

§See also