Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

labs(3) [ultrix man page]

abs(3)							     Library Functions Manual							    abs(3)

       abs, labs - integer absolute value

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

       long labs(i)
       long i;

       int abs(i)
       int i;

       long labs(i)
       long i;

       The and functions return the absolute value of their integer operand.  The labs function does the same for a long int.

       Applying the or function to the most negative integer generates a result which is the most negative integer.  That is,

       returns 0x80000000 as a result.

See Also


Check Out this Related Man Page

abs(3C) 						   Standard C Library Functions 						   abs(3C)

abs, labs, llabs - return absolute value of integer SYNOPSIS
#include <stdlib.h> int abs(int val); long labs(long lval); long long llabs(long long llval); DESCRIPTION
The abs() function returns the absolute value of its int operand. The labs() function returns the absolute value of its long operand. The llabs() function returns the absolute value of its long long operand. USAGE
In 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), standards(5) SunOS 5.10 24 Jul 2002 abs(3C)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

C++(Project SizingLabs) - question

We are working on a new benchmark tool called SizingLabs, This is my last year as a Mct Student and to pass this year i need to work 4 months with 8 other students non stop on this project. I am responsible for creating a tool for a unix system that collects system (performance) information and... (6 Replies)
Discussion started by: akira300
6 Replies

2. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies

3. Solaris

Need some E-Labs for solaris 10 & veritas volume manager

Hello friends, I need to test some of the solaris 10 concepts and veritas volume manager.i want to know ,where i get the testing labs or E-labs(online) for this practice.i ready to pay for this labs.pls kindly help me to get the details or website names...Thanks in Advance -Jay (6 Replies)
Discussion started by:
6 Replies

4. What is on Your Mind?


/* 9hello.c */ /* */ #include <u.h> #include <libc.h> void main() { print("hello, world\n"); exits(0); } (3 Replies)
Discussion started by: blixto
3 Replies