Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>labs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
labs

Usage

   #include <stdlib.h>
   long labs(long i);

   ANSI

Description

   The labs function returns the absolute value of a long integer.

Example 

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

   int main()
   {

       long lng,result;
       lng = -314159L;
       result = labs(lng);
       printf("The absolute value of (%ld) is (%ld)\n",lng,result);
       return EXIT_SUCCESS;
   }

Return Value

   Returns the absolute value of a long integer.

See Also

   abs



See Also: abs

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