Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3C) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

attributes(5)

abs(3C)

NAME

abs, labs, llabs − return absolute value of integer

SYNOPSIS

#include <stdlib.h>

int abs(int val);

long labs(long lval);

long long llabs(long long llval);

DESCRIPTION

abs() returns the absolute value of its int operand.  labs() returns the absolute value of its long operand.  llabs() returns the absolute value of its long long operand. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

attributes(5)

NOTES

In 2’s-complement representation, the absolute value of the largest magnitude negative integral value is undefined. 

SunOS 5.6  —  Last change: 29 Dec 1996

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