Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
abs.c File Reference
#include <stdlib.h>
Include dependency graph for abs.c:

Functions

int abs (int j)
 Computes the absolute value of an integer number. More...
 

Function Documentation

◆ abs()

int abs ( int  n)

Computes the absolute value of an integer number.

Computes the absolute value of an integer number. The behavior is undefined if the result cannot be represented by the return type.

Parameters
ninteger value
Returns
The absolute value of n (i.e. |n|), if it is representable.

Referenced by abs_test(), check_int(), and embdrv::ssd1306::line().

Here is the caller graph for this function: