ABS(3) Library Functions Manual ABS(3)NAME
abs - integer absolute value
Abs returns the absolute value of its integer operand.
SEE ALSO floor(3M) for fabs
Applying the abs function to the most negative integer generates a result which is the most negative integer. That is,
returns 0x80000000 as a result.
7th Edition May 15, 1985 ABS(3)
Check Out this Related Man Page
ABS(3) Linux Programmer's Manual ABS(3)NAME
abs, labs, llabs, imaxabs - compute the absolute value of an integer.
int abs(int j);
long int labs(long int j);
long long int llabs(long long int j);
intmax_t imaxabs(intmax_t j);
The abs() function computes the absolute value of the integer argument j. The labs(), llabs() and imaxabs() functions compute the absolute
value of the argument j of the appropriate integer type for the function.
Returns the absolute value of the integer argument, of the appropriate integer type for the function.
SVID 3, POSIX.1, BSD 4.3, ISO/IEC 9899 (C99). POSIX.1 (1996 edition) only requires the abs() function. ISO/IEC 9899:1990 (C89) only
includes the abs() and labs() functions; the functions llabs() and imaxabs() were added in C99.
Trying to take the absolute value of the most negative integer is not defined.
The llabs() function is included in glibc since version 2.0, but is not in libc5 or libc4. The imaxabs() function is included in glibc
since version 2.1.1.
For llabs() to be declared, it may be necessary to define _ISOC99_SOURCE or _ISOC9X_SOURCE (depending on the version of glibc) before
including any standard headers.
GCC handles abs() and labs() as builtin functions. GCC 3.0 also handles llabs() and imaxabs() as builtins.
SEE ALSO ceil(3), floor(3), fabs(3), rint(3)GNU 2000-12-17 ABS(3)
I'm sure this is pretty infantile but I can't figute it out.
How to I load the nVidia driver for SuSE 9.2? I have no idea what the X environment is or how to quit it or how to run the nVidia patch.
Secondly how do I persuade my SuSE 9.3 computer to talk with my Windows XP network.
Linux... (9 Replies)
can i get script find file & copy that file with path
for an example
sourse : /home/abc/
destination : /home/backup/
files which need to find : tmp*
copy these files with its absolute path inside
like :- /home/abc/x/y/z/tmp.txt to /home/backup/date/x/y/z/tmp.txt
thanks in... (15 Replies)
I need to invoke the dumpstabs utility on Solaris 10.
OS details :
SunOS frtsunserver 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440
when i key in the command dumpstabs -v it says "dumpstabs not found. (13 Replies)
I have a script in which i want to print absolute path of the same script irrespective of path from where i run script.
I am using
echo "pwd : `pwd`"
echo "script name: $0"
echo "dirname: `dirname $0`"
when i run script from /my/test/dir/struct as ../test.sh the output i... (10 Replies)
How can I extract parts from an absolute path?
For example :
The absolute path is /dir1/dir2/dir3/dir4/dir5.I need the relative path starting with directory given as parameter : for instance if the parameter is dir3 then the result should be dir3/dir4/dir5
I need generic solution... (9 Replies)
i have a file.txt:
Note: All the seperators are SPACE.
ParameterObject=1 Speech 1
ParameterObject=2 Speech 1
ParamFunction=1 UserID 1 (DEACTIVATED)
Sector=1,Device=2,Unit=3 DeviceId 1
FeederCable=2B ... (18 Replies)
I have an unstructured file with space as delimiter , which I want to structure.
The output file should actually have only 5 columns with tab as delimiter.
The 4th column can have only 3 values ( biological_process , cellular_component , molecular_function )
Here is how the... (12 Replies)