labs(3C) — COMPATIBILITY FUNCTIONS
NAME
labs − return absolute value of integer
SYNOPSIS
#include <stdlib.h>
long labs(long lval);
DESCRIPTION
labs() returns the absolute value of its long operand.
NOTES
In 2’s-complement representation, the absolute value of the largest magnitude negative integral value is undefined.
The unbundled ANSI C compiler provides ANSI versions of most of the system header files, which are used automatically at compile time. For example, the directive
#include <stdio.h> will use the file provided by this compiler, rather than /usr/include/stdio.h.
Sun Release 4.1 — Last change: 21 June 1994