Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_abs - Compute the absolute value of x.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                         SDL_abs(3)

Function Parameters

x      an integer value.

Name

       SDL_abs - Compute the absolute value of x.

Return Value

       Returns the absolute value of x.

Synopsis

#include<SDL3/SDL_stdinc.h>intSDL_abs(intx);

Thread Safety

       It is safe to call this function from any thread.

See Also