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

Functions

long labs (long j)
 Computes the absolute value of an long number. More...
 

Function Documentation

◆ labs()

long labs ( long  n)

Computes the absolute value of an long number.

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

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

Referenced by check_long().

Here is the caller graph for this function: