logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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