Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdlib.h>
    long int labs( long int j );

Description:
    The labs function returns the absolute value of its long-integer
    argument j.

Returns:
    The labs function returns the absolute value of its argument.

Example:
    #include <stdio.h>
    #include <stdlib.h>

    void main()
      {
        long x, y;

        x = -50000L;
        y = labs( x );
        printf( "labs(%ld) = %ld\n", x, y );
      }

    produces the following:

    labs(-50000) = 50000

Classification:
    ANSI

Systems:
    All, Netware

See Also:
    abs, fabs

See Also: abs fabs

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson