Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ labs(3C) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reentrant(3)

floor(3M)



abs(3C)                           SDK R4.11                          abs(3C)


NAME
       abs, labs - return integer absolute value

SYNOPSIS
       #include <stdlib.h>

       int abs (int val);

       long labs (long lval);

DESCRIPTION
       abs returns the absolute value of its int operand.  labs returns the
       absolute value of its long operand.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |abs      |     Y         N        N    |
                     |labs     |     Y         N        N    |
                     +---------+-----------------------------+

SEE ALSO
       reentrant(3), floor(3M).

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


Licensed material--property of copyright holder(s)

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