Go to the first, previous, next, last section, table of contents.


labs

Syntax

#include <stdlib.h>

long labs(long x);

Description

This function takes the absolute value of x. See section abs.

Return Value

|x|

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.