ABS(3) BSD Library Functions Manual ABS(3)NAME
abs -- integer absolute value function
Standard C Library (libc, -lc)
The abs() function computes the absolute value of the integer j.
The abs() function returns the absolute value.
SEE ALSO cabs(3), fabs(3), floor(3), hypot(3), imaxabs(3), labs(3), llabs(3), math(3)STANDARDS
The abs() function conforms to ISO/IEC 9899:1999 (``ISO C99'').
The absolute value of the most negative integer remains negative.
BSD November 14, 2001 BSD
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);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
_XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
or cc -std=c99
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.
Multithreading (see pthreads(7))
The abs(), labs(), llabs(), and imaxabs() functions are thread-safe.
SVr4, POSIX.1-2001, 4.3BSD, C99. 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 built-in functions. GCC 3.0 also handles llabs() and imaxabs() as built-ins.
SEE ALSO cabs(3), ceil(3), fabs(3), floor(3), rint(3)COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2013-06-21 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)