Function SDL_abs

pub unsafe extern "C" fn SDL_abs(x: i32) -> i32
Available on crate feature dep_sdl3 only.
Expand description

Compute the absolute value of x.

§Parameters

  • x: an integer value.

§Return value

Returns the absolute value of x.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.