Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ labs(DOS) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(DOS)

fabs(DOS)

hypot(S)



     LABS(DOS)                XENIX System V                 LABS(DOS)



     Name
          labs - Returns the absolute value of a long integer.

     Syntax
          #include <stdlib.h>

          long labs (n);
          long n;

     Description
          The labs function produces the absolute value of its long
          integer argument n.

     Return Value
          labs returns the absolute value of its argument.  There is
          no error return.

     See Also
          abs(DOS), fabs(DOS), hypot(S)

     Example
          #include <stdlib.h>

          long x, y;

          x = -41567L; y = labs (x);  /* y = 41567L */

     Notes
          This call must be compiled with the -dos flag.


























     Page 1                                           (printed 8/7/87)



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