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++ Language Reference - labs http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   labs

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

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

   Example
   #include <stdlib.h>
   #include <stdio.h>
   main()
   {
   long lng,result;
        lng = -314159L;
        result = labs(lng);
        printf("The absolute value of (%ld) is (%ld)\n",lng,result);
   }

   Return Value
   Returns the absolute value of a long integer.


See Also: abs

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