Function SDL_CopyStorageFile

pub unsafe extern "C" fn SDL_CopyStorageFile(
    storage: *mut SDL_Storage,
    oldpath: *const i8,
    newpath: *const i8,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Copy a file in a writable storage container.

§Parameters

  • storage: a storage container.
  • oldpath: the old path.
  • newpath: the new path.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.

§See also