Manpage of LABS
LABS
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.18 `labs'--long integer absolute value
SYNOPSIS
#include <stdlib.h>
long labs(long I);
DESCRIPTION
`labs' returns the absolute value of I (also called the magnitude of
I). That is, if I is negative, the result is the opposite of I, but if
I is nonnegative the result is I.
The similar function `abs' uses and returns `int' rather than `long'
values.
RETURNS
The result is a nonnegative long integer.
PORTABILITY
`labs' is ANSI.
No supporting OS subroutine calls are required.
SEE ALSO
labs
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:19 GMT, May 16, 2005
www.fiveanddime.net