Function axlibc::rename

source ·
#[no_mangle]
pub unsafe extern "C" fn rename(
    old: *const c_char,
    new: *const c_char
) -> c_int
Available on crate feature fs only.
Expand description

Rename old to new If new exists, it is first removed.

Return 0 if the operation succeeds, otherwise return -1.