Skip to main content

SDL_IOprintf

Function SDL_IOprintf 

Source
pub unsafe extern "C" fn SDL_IOprintf(
    context: *mut SDL_IOStream,
    fmt: *const c_char,
    ...
) -> usize
Expand description

Print to an SDL_IOStream data stream.

This function does formatted printing to the stream.

Parameter: context a pointer to an SDL_IOStream structure. Parameter: fmt a printf() style format string. Parameter: … additional parameters matching % tokens in the fmt string, if any. 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.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_IOvprintf See Also: SDL_WriteIO