Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ labs(3C) — Sun WorkShop 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026